Use error codes for type ignores (#8280)

Disable reportSelfClsParameterName for pytype as this is out of typeshed's
control

Closes: #7497
This commit is contained in:
Sebastian Rittau
2022-07-12 20:15:49 +02:00
committed by GitHub
parent 6348a58b8b
commit faae950ade
17 changed files with 29 additions and 20 deletions

View File

@@ -27,7 +27,7 @@ class _Argon2Common( # type: ignore[misc]
min_memory_cost: ClassVar[int]
max_threads: ClassVar[int]
pure_use_threads: ClassVar[bool]
def type_values(cls): ... # type: ignore
def type_values(cls): ...
type: str
parallelism: int
version: int

View File

@@ -78,7 +78,7 @@ class TOTP:
def pretty_key(self, format: str = ..., sep: str = ...): ...
@classmethod
def normalize_time(cls, time): ...
def normalize_token(self_or_cls, token): ... # type: ignore
def normalize_token(self_or_cls, token): ...
def generate(self, time: Any | None = ...): ...
@classmethod
def verify(cls, token, source, **kwds): ...