From 8ea233712e6d9bcedc97f735eca606ecb3220a40 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Mon, 17 Mar 2025 22:12:19 +0100 Subject: [PATCH] [passlib] Fix for Python 3.13 `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 732e02106f27..5b365e00ecab 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