mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[passlib] Fix for Python 3.13 (#13649)
`passlib.hosts.host_context` is not present on Python 3.13.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
from passlib.context import CryptContext
|
||||
@@ -8,4 +9,5 @@ freebsd_context: Any
|
||||
openbsd_context: Any
|
||||
netbsd_context: Any
|
||||
# Only exists if crypt is present
|
||||
host_context: CryptContext
|
||||
if sys.version_info < (3, 13):
|
||||
host_context: CryptContext
|
||||
|
||||
Reference in New Issue
Block a user