diff --git a/stubs/passlib/@tests/stubtest_allowlist_win32.txt b/stubs/passlib/@tests/stubtest_allowlist_win32.txt new file mode 100644 index 000000000..217d59c71 --- /dev/null +++ b/stubs/passlib/@tests/stubtest_allowlist_win32.txt @@ -0,0 +1,2 @@ +# Only exists if crypt is present +passlib.hosts.host_context diff --git a/stubs/passlib/passlib/hosts.pyi b/stubs/passlib/passlib/hosts.pyi index 6c4040d1c..732e02106 100644 --- a/stubs/passlib/passlib/hosts.pyi +++ b/stubs/passlib/passlib/hosts.pyi @@ -1,8 +1,11 @@ from typing import Any +from passlib.context import CryptContext + linux_context: Any linux2_context: Any freebsd_context: Any openbsd_context: Any netbsd_context: Any -host_context: Any +# Only exists if crypt is present +host_context: CryptContext