]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
require python3.11 for proxy stub generation
authorVincent Fazio <vfazio@gmail.com>
Fri, 30 Dec 2022 13:41:47 +0000 (07:41 -0600)
committerVincent Fazio <vfazio@xes-inc.com>
Fri, 30 Dec 2022 23:02:27 +0000 (17:02 -0600)
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
tools/write_pyi.py

index 83e7758603a66648c11f5568fdbe573a79be9e16..e3feb363096d1ee9a2f3dc8fee0cf040dde4bc97 100644 (file)
@@ -52,8 +52,10 @@ def generate_pyi_for_proxy(
 ):
     ignore_items = IGNORE_ITEMS.get(file_key, set())
     context_managers = CONTEXT_MANAGERS.get(file_key, [])
-    if sys.version_info < (3, 9):
-        raise RuntimeError("This script must be run with Python 3.9 or higher")
+    if sys.version_info < (3, 11):
+        raise RuntimeError(
+            "This script must be run with Python 3.11 or higher"
+        )
 
     # When using an absolute path on windows, this will generate the correct
     # relative path that shall be written to the top comment of the pyi file.