From f0d9b4e0569732814e10e843dacfcc28ef7fdd74 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 18 Mar 2025 01:14:52 +0100 Subject: [PATCH] [passlib] Fix for Python 3.13 (#13649) `passlib.hosts.host_context` is not present on Python 3.13. --- stubs/passlib/passlib/hosts.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/passlib/passlib/hosts.pyi b/stubs/passlib/passlib/hosts.pyi index 732e02106..5b365e00e 100644 --- a/stubs/passlib/passlib/hosts.pyi +++ b/stubs/passlib/passlib/hosts.pyi @@ -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