]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
more 3.9 compatibility
authorPablo Estevez <pablo22estevez@gmail.com>
Mon, 20 Jan 2025 17:58:21 +0000 (14:58 -0300)
committerPablo Estevez <pablo22estevez@gmail.com>
Mon, 20 Jan 2025 17:58:21 +0000 (14:58 -0300)
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/sqltypes.py

index 25902f9318264cc61d970cc80e87ef070ca92662..bae5777ebf413b448aa547312a9cdc2688db5427 100644 (file)
@@ -566,7 +566,7 @@ class DefaultDialect(Dialect):
                 % (self.label_length, self.max_identifier_length)
             )
 
-    def on_connect(self) -> Callable[[Any], None] | None:
+    def on_connect(self) -> Optional[Callable[[Any]]]:
         # inherits the docstring from interfaces.Dialect.on_connect
         return None
 
index 116983e8467a1db85288bbd49afdac5f2f0f2869..5fd47d0379d1283cb42f571b3f45e8fe14f540b3 100644 (file)
@@ -253,7 +253,7 @@ class String(Concatenable, TypeEngine[str]):
 
     def result_processor(
         self, dialect: Dialect, coltype: object
-    ) -> _ResultProcessorType[str] | None:
+    ) -> Optional[_ResultProcessorType[str]]:
         return None
 
     @property