]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
chore: add return types
authorjackwotherspoon <jackwoth@google.com>
Mon, 29 May 2023 16:05:30 +0000 (16:05 +0000)
committerjackwotherspoon <jackwoth@google.com>
Mon, 29 May 2023 16:05:30 +0000 (16:05 +0000)
lib/sqlalchemy/ext/asyncio/engine.py

index e89c4b4e6dbdf58e8e5a8fb38de9c70d4baf603b..b4d0579b2f97f1385d227c8864a8d457d61cd41a 100644 (file)
@@ -84,10 +84,10 @@ def create_async_engine(url: Union[str, URL], **kw: Any) -> AsyncEngine:
     kw["_is_async"] = True
     async_creator = kw.pop("async_creator", None)
     if async_creator:
-        async def wrap_async_creator():
+        async def wrap_async_creator() -> Any:
             return await async_creator()
 
-        def creator():
+        def creator() -> Any:
             # note that to send adapted arguments like
             # prepared_statement_cache_size, user would use
             # "creator" and emulate this form here