Skip to content

Commit 97acbad

Browse files
chore: Make Ruff happy (#123)
1 parent f70c385 commit 97acbad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sqlean_driver/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from sqlalchemy.dialects.sqlite.pysqlite import SQLiteDialect_pysqlite
99

1010
if t.TYPE_CHECKING:
11+
from collections.abc import Callable
1112
from types import ModuleType
1213

1314
from sqlalchemy.engine.url import URL
@@ -37,7 +38,7 @@ def import_dbapi(cls) -> ModuleType:
3738

3839
return sqlean # type: ignore[no-any-return]
3940

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:
4142
"""Return a callable that will be executed on connect."""
4243
query = url.query.get("extensions", ())
4344
extensions = query if isinstance(query, tuple) else query.split(",")

0 commit comments

Comments
 (0)