We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70c385 commit 97acbadCopy full SHA for 97acbad
src/sqlean_driver/__init__.py
@@ -8,6 +8,7 @@
8
from sqlalchemy.dialects.sqlite.pysqlite import SQLiteDialect_pysqlite
9
10
if t.TYPE_CHECKING:
11
+ from collections.abc import Callable
12
from types import ModuleType
13
14
from sqlalchemy.engine.url import URL
@@ -37,7 +38,7 @@ def import_dbapi(cls) -> ModuleType:
37
38
39
return sqlean # type: ignore[no-any-return]
40
- def on_connect_url(self, url: URL) -> t.Callable[[t.Any], t.Any] | None:
41
+ def on_connect_url(self, url: URL) -> Callable[[t.Any], t.Any] | None:
42
"""Return a callable that will be executed on connect."""
43
query = url.query.get("extensions", ())
44
extensions = query if isinstance(query, tuple) else query.split(",")
0 commit comments