Skip to content

Commit f0d9b4e

Browse files
authored
[passlib] Fix for Python 3.13 (#13649)
`passlib.hosts.host_context` is not present on Python 3.13.
1 parent d6373d9 commit f0d9b4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stubs/passlib/passlib/hosts.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from typing import Any
23

34
from passlib.context import CryptContext
@@ -8,4 +9,5 @@ freebsd_context: Any
89
openbsd_context: Any
910
netbsd_context: Any
1011
# Only exists if crypt is present
11-
host_context: CryptContext
12+
if sys.version_info < (3, 13):
13+
host_context: CryptContext

0 commit comments

Comments
 (0)