Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions stubs/passlib/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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__`:
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
# 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.*
3 changes: 3 additions & 0 deletions stubs/passlib/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
version = "1.7.*"

[tool.stubtest]
ignore_missing_stub = false
2 changes: 2 additions & 0 deletions stubs/passlib/passlib/handlers/digests.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions stubs/passlib/passlib/handlers/misc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down