mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
add noqa to py3 type checks
This prevents `F821 undefined name` warnings
This commit is contained in:
parent
1c761c60fb
commit
4e2c2a9a2e
1 changed files with 3 additions and 3 deletions
|
|
@ -47,9 +47,9 @@ REDACTED_TOMBSTONE = 'REDACTED'
|
|||
# Utilities.
|
||||
|
||||
PY3 = sys.version_info[0] == 3
|
||||
STRING = str if PY3 else unicode
|
||||
BASESTRING = str if PY3 else basestring
|
||||
NUMERIC_TYPES = (int, float) if PY3 else (int, float, long)
|
||||
STRING = str if PY3 else unicode # noqa
|
||||
BASESTRING = str if PY3 else basestring # noqa
|
||||
NUMERIC_TYPES = (int, float) if PY3 else (int, float, long) # noqa
|
||||
|
||||
|
||||
def iter_first(sequence):
|
||||
|
|
|
|||
Loading…
Reference in a new issue