mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Add mypy error codes to type: ignores, remove unused ignores (#7504)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ class _DummyCffiHasher:
|
||||
salt_len: int
|
||||
hash_len: int
|
||||
|
||||
class _Argon2Common( # type: ignore
|
||||
class _Argon2Common( # type: ignore[misc]
|
||||
uh.SubclassBackendMixin, uh.ParallelismMixin, uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler
|
||||
):
|
||||
name: str
|
||||
@@ -82,5 +82,5 @@ class _CffiBackend(_Argon2Common):
|
||||
|
||||
class _PureBackend(_Argon2Common): ...
|
||||
|
||||
class argon2(_NoBackend, _Argon2Common): # type: ignore
|
||||
class argon2(_NoBackend, _Argon2Common): # type: ignore[misc]
|
||||
backends: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class _BcryptCommon(uh.SubclassBackendMixin, uh.TruncateMixin, uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class _BcryptCommon(uh.SubclassBackendMixin, uh.TruncateMixin, uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
@@ -34,7 +34,7 @@ class _PyBcryptBackend(_BcryptCommon): ...
|
||||
class _OsCryptBackend(_BcryptCommon): ...
|
||||
class _BuiltinBackend(_BcryptCommon): ...
|
||||
|
||||
class bcrypt(_NoBackend, _BcryptCommon): # type: ignore
|
||||
class bcrypt(_NoBackend, _BcryptCommon): # type: ignore[misc]
|
||||
backends: Any
|
||||
|
||||
class _wrapped_bcrypt(bcrypt):
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class cisco_pix(uh.HasUserContext, uh.StaticHandler): # type: ignore
|
||||
class cisco_pix(uh.HasUserContext, uh.StaticHandler):
|
||||
name: str
|
||||
truncate_size: int
|
||||
truncate_error: bool
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class des_crypt(uh.TruncateMixin, uh.HasManyBackends, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class des_crypt(uh.TruncateMixin, uh.HasManyBackends, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
@@ -16,7 +16,7 @@ class des_crypt(uh.TruncateMixin, uh.HasManyBackends, uh.HasSalt, uh.GenericHand
|
||||
def to_string(self): ...
|
||||
backends: Any
|
||||
|
||||
class bsdi_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class bsdi_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
@@ -35,7 +35,7 @@ class bsdi_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler
|
||||
def using(cls, **kwds): ...
|
||||
backends: Any
|
||||
|
||||
class bigcrypt(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class bigcrypt(uh.HasSalt, uh.GenericHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
@@ -46,7 +46,7 @@ class bigcrypt(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class crypt16(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class crypt16(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
|
||||
@@ -4,7 +4,7 @@ import passlib.utils.handlers as uh
|
||||
from passlib.handlers.bcrypt import _wrapped_bcrypt
|
||||
from passlib.ifc import DisabledHash
|
||||
|
||||
class DjangoSaltedHash(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class DjangoSaltedHash(uh.HasSalt, uh.GenericHandler):
|
||||
setting_kwds: Any
|
||||
default_salt_size: ClassVar[int]
|
||||
max_salt_size: Any
|
||||
@@ -14,7 +14,7 @@ class DjangoSaltedHash(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class DjangoVariableHash(uh.HasRounds, DjangoSaltedHash): # type: ignore
|
||||
class DjangoVariableHash(uh.HasRounds, DjangoSaltedHash): # type: ignore[misc]
|
||||
setting_kwds: Any
|
||||
min_rounds: int
|
||||
@classmethod
|
||||
@@ -64,7 +64,7 @@ class django_pbkdf2_sha1(django_pbkdf2_sha256):
|
||||
|
||||
django_argon2: Any
|
||||
|
||||
class django_des_crypt(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class django_des_crypt(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
django_name: str
|
||||
setting_kwds: Any
|
||||
@@ -80,7 +80,7 @@ class django_des_crypt(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class django_disabled(DisabledHash, uh.StaticHandler): # type: ignore
|
||||
class django_disabled(DisabledHash, uh.StaticHandler):
|
||||
name: str
|
||||
suffix_length: int
|
||||
@classmethod
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any, ClassVar
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class fshp(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class fshp(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
|
||||
@@ -25,7 +25,7 @@ class _Base64DigestHelper(uh.StaticHandler):
|
||||
ident: Any
|
||||
checksum_chars: Any
|
||||
|
||||
class _SaltedBase64DigestHelper(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class _SaltedBase64DigestHelper(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
ident: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class _MD5_Common(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class _MD5_Common(uh.HasSalt, uh.GenericHandler):
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
checksum_chars: Any
|
||||
@@ -12,7 +12,7 @@ class _MD5_Common(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class md5_crypt(uh.HasManyBackends, _MD5_Common): # type: ignore
|
||||
class md5_crypt(uh.HasManyBackends, _MD5_Common):
|
||||
name: str
|
||||
ident: Any
|
||||
backends: Any
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Any
|
||||
import passlib.utils.handlers as uh
|
||||
from passlib.ifc import DisabledHash
|
||||
|
||||
class unix_fallback(DisabledHash, uh.StaticHandler): # type: ignore
|
||||
class unix_fallback(DisabledHash, uh.StaticHandler):
|
||||
name: str
|
||||
context_kwds: Any
|
||||
@classmethod
|
||||
@@ -13,7 +13,7 @@ class unix_fallback(DisabledHash, uh.StaticHandler): # type: ignore
|
||||
@classmethod
|
||||
def verify(cls, secret, hash, enable_wildcard: bool = ...): ... # type: ignore[override]
|
||||
|
||||
class unix_disabled(DisabledHash, uh.MinimalHandler): # type: ignore
|
||||
class unix_disabled(DisabledHash, uh.MinimalHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
context_kwds: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class mssql2000(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class mssql2000(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
@@ -16,7 +16,7 @@ class mssql2000(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: i
|
||||
@classmethod
|
||||
def verify(cls, secret, hash): ...
|
||||
|
||||
class mssql2005(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class mssql2005(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
|
||||
@@ -2,12 +2,12 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class oracle10(uh.HasUserContext, uh.StaticHandler): # type: ignore
|
||||
class oracle10(uh.HasUserContext, uh.StaticHandler):
|
||||
name: str
|
||||
checksum_chars: Any
|
||||
checksum_size: int
|
||||
|
||||
class oracle11(uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class oracle11(uh.HasSalt, uh.GenericHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_size: int
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Any, ClassVar
|
||||
import passlib.utils.handlers as uh
|
||||
from passlib.utils.handlers import PrefixWrapper
|
||||
|
||||
class Pbkdf2DigestHandler(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class Pbkdf2DigestHandler(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore[misc]
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
default_salt_size: ClassVar[int]
|
||||
@@ -41,7 +41,7 @@ ldap_pbkdf2_sha1: PrefixWrapper
|
||||
ldap_pbkdf2_sha256: PrefixWrapper
|
||||
ldap_pbkdf2_sha512: PrefixWrapper
|
||||
|
||||
class cta_pbkdf2_sha1(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class cta_pbkdf2_sha1(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
@@ -56,7 +56,7 @@ class cta_pbkdf2_sha1(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.Generic
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class dlitz_pbkdf2_sha1(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class dlitz_pbkdf2_sha1(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
@@ -71,7 +71,7 @@ class dlitz_pbkdf2_sha1(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: i
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class atlassian_pbkdf2_sha1(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class atlassian_pbkdf2_sha1(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
@@ -82,7 +82,7 @@ class atlassian_pbkdf2_sha1(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler)
|
||||
def from_string(cls, hash): ...
|
||||
def to_string(self): ...
|
||||
|
||||
class grub_pbkdf2_sha512(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class grub_pbkdf2_sha512(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class phpass(uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class phpass(uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class postgres_md5(uh.HasUserContext, uh.StaticHandler): # type: ignore
|
||||
class postgres_md5(uh.HasUserContext, uh.StaticHandler):
|
||||
name: str
|
||||
checksum_chars: Any
|
||||
checksum_size: int
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any, ClassVar
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class scram(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore
|
||||
class scram(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any, ClassVar
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class scrypt(uh.ParallelismMixin, uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.HasManyIdents, uh.GenericHandler): # type: ignore
|
||||
class scrypt(uh.ParallelismMixin, uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.HasManyIdents, uh.GenericHandler): # type: ignore[misc]
|
||||
backends: ClassVar[tuple[str, ...]]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
|
||||
@@ -4,7 +4,7 @@ import passlib.utils.handlers as uh
|
||||
|
||||
log: Any
|
||||
|
||||
class sha1_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class sha1_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
ident: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class _SHA2_Common(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class _SHA2_Common(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
max_salt_size: int
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any, ClassVar
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class sun_md5_crypt(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore
|
||||
class sun_md5_crypt(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignore[misc]
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any
|
||||
|
||||
import passlib.utils.handlers as uh
|
||||
|
||||
class lmhash(uh.TruncateMixin, uh.HasEncodingContext, uh.StaticHandler): # type: ignore
|
||||
class lmhash(uh.TruncateMixin, uh.HasEncodingContext, uh.StaticHandler):
|
||||
name: str
|
||||
setting_kwds: Any
|
||||
checksum_chars: Any
|
||||
@@ -23,14 +23,14 @@ class nthash(uh.StaticHandler):
|
||||
|
||||
bsd_nthash: Any
|
||||
|
||||
class msdcc(uh.HasUserContext, uh.StaticHandler): # type: ignore
|
||||
class msdcc(uh.HasUserContext, uh.StaticHandler):
|
||||
name: str
|
||||
checksum_chars: Any
|
||||
checksum_size: int
|
||||
@classmethod
|
||||
def raw(cls, secret, user): ...
|
||||
|
||||
class msdcc2(uh.HasUserContext, uh.StaticHandler): # type: ignore
|
||||
class msdcc2(uh.HasUserContext, uh.StaticHandler):
|
||||
name: str
|
||||
checksum_chars: Any
|
||||
checksum_size: int
|
||||
|
||||
@@ -148,7 +148,7 @@ class BackendMixin(PasswordHash, metaclass=abc.ABCMeta):
|
||||
def set_backend(cls, name: str = ..., dryrun: bool = ...): ...
|
||||
|
||||
class SubclassBackendMixin(BackendMixin, metaclass=abc.ABCMeta): ...
|
||||
class HasManyBackends(BackendMixin, GenericHandler): ... # type: ignore
|
||||
class HasManyBackends(BackendMixin, GenericHandler): ...
|
||||
|
||||
class PrefixWrapper:
|
||||
name: Any
|
||||
|
||||
Reference in New Issue
Block a user