Skip to content

Commit df0a062

Browse files
authored
Mark passlib as completed (#9302)
1 parent 4366ff1 commit df0a062

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

stubs/passlib/@tests/stubtest_allowlist.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,20 @@ passlib.utils.handlers.GenericHandler.setting_kwds
3434
# set to None on class level, but initialized in __init__
3535
passlib.utils.handlers.HasManyIdents.ident
3636
passlib.utils.handlers.HasRounds.rounds
37+
38+
# Errors in `__all__` at runtime:
39+
# TODO: change after https://github.com/python/mypy/pull/14217 is released
40+
passlib.handlers.oracle
41+
passlib.handlers.oracle.oracle11g
42+
passlib.handlers.oracle.oracle10g
43+
passlib.handlers.mysql
44+
passlib.handlers.mysql.mysq41
45+
46+
# Mutable state because of the warnigns:
47+
passlib.utils.des.__warningregistry__
48+
49+
# Compat tools are ignored:
50+
passlib.utils.compat.*
51+
52+
# Tests are not included:
53+
passlib.tests.*

stubs/passlib/METADATA.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
version = "1.7.*"
2+
3+
[tool.stubtest]
4+
ignore_missing_stub = false

stubs/passlib/passlib/handlers/digests.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ hex_sha512: Any
1717
class htdigest(uh.MinimalHandler):
1818
name: ClassVar[str]
1919
default_encoding: ClassVar[str]
20+
setting_kwds: ClassVar[tuple[str, ...]]
21+
context_kwds: ClassVar[tuple[str, ...]]
2022
@classmethod
2123
def hash(cls, secret, user, realm, encoding: Any | None = ...): ... # type: ignore[override]
2224
@classmethod

stubs/passlib/passlib/handlers/misc.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class unix_fallback(DisabledHash, uh.StaticHandler):
1515
class unix_disabled(DisabledHash, uh.MinimalHandler):
1616
name: ClassVar[str]
1717
default_marker: ClassVar[str]
18+
setting_kwds: ClassVar[tuple[str, ...]]
19+
context_kwds: ClassVar[tuple[str, ...]]
1820
@classmethod
1921
def using(cls, marker: Any | None = ..., **kwds): ... # type: ignore[override]
2022
@classmethod
@@ -33,6 +35,8 @@ class unix_disabled(DisabledHash, uh.MinimalHandler):
3335
class plaintext(uh.MinimalHandler):
3436
name: ClassVar[str]
3537
default_encoding: ClassVar[str]
38+
setting_kwds: ClassVar[tuple[str, ...]]
39+
context_kwds: ClassVar[tuple[str, ...]]
3640
@classmethod
3741
def identify(cls, hash: str | bytes): ...
3842
@classmethod

0 commit comments

Comments
 (0)