Mark passlib as completed (#9302)

This commit is contained in:
Nikita Sobolev
2022-11-29 15:07:17 +03:00
committed by GitHub
parent 4366ff1e0b
commit df0a062b34
4 changed files with 26 additions and 0 deletions

View File

@@ -34,3 +34,20 @@ passlib.utils.handlers.GenericHandler.setting_kwds
# set to None on class level, but initialized in __init__
passlib.utils.handlers.HasManyIdents.ident
passlib.utils.handlers.HasRounds.rounds
# Errors in `__all__` at runtime:
# TODO: change after https://github.com/python/mypy/pull/14217 is released
passlib.handlers.oracle
passlib.handlers.oracle.oracle11g
passlib.handlers.oracle.oracle10g
passlib.handlers.mysql
passlib.handlers.mysql.mysq41
# Mutable state because of the warnigns:
passlib.utils.des.__warningregistry__
# Compat tools are ignored:
passlib.utils.compat.*
# Tests are not included:
passlib.tests.*

View File

@@ -1 +1,4 @@
version = "1.7.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -17,6 +17,8 @@ hex_sha512: Any
class htdigest(uh.MinimalHandler):
name: ClassVar[str]
default_encoding: ClassVar[str]
setting_kwds: ClassVar[tuple[str, ...]]
context_kwds: ClassVar[tuple[str, ...]]
@classmethod
def hash(cls, secret, user, realm, encoding: Any | None = ...): ... # type: ignore[override]
@classmethod

View File

@@ -15,6 +15,8 @@ class unix_fallback(DisabledHash, uh.StaticHandler):
class unix_disabled(DisabledHash, uh.MinimalHandler):
name: ClassVar[str]
default_marker: ClassVar[str]
setting_kwds: ClassVar[tuple[str, ...]]
context_kwds: ClassVar[tuple[str, ...]]
@classmethod
def using(cls, marker: Any | None = ..., **kwds): ... # type: ignore[override]
@classmethod
@@ -33,6 +35,8 @@ class unix_disabled(DisabledHash, uh.MinimalHandler):
class plaintext(uh.MinimalHandler):
name: ClassVar[str]
default_encoding: ClassVar[str]
setting_kwds: ClassVar[tuple[str, ...]]
context_kwds: ClassVar[tuple[str, ...]]
@classmethod
def identify(cls, hash: str | bytes): ...
@classmethod