Skip to content

Commit 6d8d8ff

Browse files
committed
fix: type check.
1 parent e9c9efa commit 6d8d8ff

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

turu-snowflake/src/turu/snowflake/mock_async_connection.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ def inject_response( # type: ignore[override]
8989
],
9090
response: Union[Sequence[Any], Any, Exception] = None,
9191
) -> Self:
92-
if (
93-
row_type is not None
94-
and PandasDataFlame is not Never
95-
and isinstance(response, PandasDataFlame)
96-
):
92+
if row_type is not None and isinstance(response, PandasDataFlame):
9793
response = (response,)
9894

9995
self._turu_mock_store.inject_response(

turu-snowflake/src/turu/snowflake/mock_connection.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ def inject_response( # type: ignore[override]
8787
],
8888
response: Union[Sequence[Any], Any, Exception] = None,
8989
) -> Self:
90-
if (
91-
row_type is not None
92-
and PandasDataFlame is not Never
93-
and isinstance(response, PandasDataFlame)
94-
):
90+
if row_type is not None and isinstance(response, PandasDataFlame):
9591
response = (response,)
9692

9793
self._turu_mock_store.inject_response(

0 commit comments

Comments
 (0)