Skip to content

Commit 37f80e7

Browse files
committed
refactor(typing): Explict cast for mypy.
1 parent 10a42e8 commit 37f80e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlmesh/core/config/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ def handle_datetimeoffset_mssql_python(dto_value: t.Any) -> t.Any:
17261726

17271727
conn.add_output_converter(-155, handle_datetimeoffset_mssql_python)
17281728

1729-
return conn
1729+
return t.cast(t.Any, conn)
17301730

17311731
return connect_mssql_python
17321732

@@ -1818,7 +1818,7 @@ def handle_datetimeoffset_pyodbc(dto_value: t.Any) -> t.Any:
18181818

18191819
conn.add_output_converter(-155, handle_datetimeoffset_pyodbc)
18201820

1821-
return conn
1821+
return t.cast(t.Any, conn)
18221822

18231823
return connect_pyodbc
18241824

0 commit comments

Comments
 (0)