Remove unnecessary F821 noqas (#10123)

This commit is contained in:
Alex Waygood
2023-05-01 15:50:00 +01:00
committed by GitHub
parent 295a5c3e7a
commit 277532219f
4 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ def build_pattern(mapping=...) -> Generator[str, None, None]: ...
class FixImports(fixer_base.BaseFix):
BM_compatible: ClassVar[Literal[True]]
mapping = MAPPING # noqa: F821
mapping = MAPPING
def build_pattern(self): ...
def compile_pattern(self) -> None: ...
def match(self, node): ...

View File

@@ -3,4 +3,4 @@ from . import fix_imports
MAPPING: dict[str, str]
class FixImports2(fix_imports.FixImports):
mapping = MAPPING # noqa: F821
mapping = MAPPING

View File

@@ -3,8 +3,8 @@ from _typeshed import Incomplete
MAC_EPOCH: Incomplete
WINDOWS_EPOCH: Incomplete
# The following two constants are defined twice in the implementation.
CALENDAR_WINDOWS_1900 = WINDOWS_EPOCH # noqa: F821
CALENDAR_MAC_1904 = MAC_EPOCH # noqa: F821
CALENDAR_WINDOWS_1900 = WINDOWS_EPOCH
CALENDAR_MAC_1904 = MAC_EPOCH
SECS_PER_DAY: int
ISO_FORMAT: str
ISO_REGEX: Incomplete

View File

@@ -20,16 +20,16 @@ django14_context: CryptContext
django16_context: CryptContext
django110_context: CryptContext
django21_context: CryptContext
django_context = django21_context # noqa: F821
django_context = django21_context
std_ldap_schemes: list[str]
ldap_nocrypt_context: CryptContext
ldap_context: CryptContext
mysql3_context: CryptContext
mysql4_context: CryptContext
mysql_context = mysql4_context # noqa: F821
mysql_context = mysql4_context
postgres_context: CryptContext
phpass_context: CryptContext
phpbb3_context: CryptContext
roundup10_context: CryptContext
roundup15_context: CryptContext
roundup_context = roundup15_context # noqa: F821
roundup_context = roundup15_context