Skip to content

Commit bbf84d8

Browse files
authored
Merge pull request #52 from yassun7010/fix_never_case
fix: never case.
2 parents 8dc8ef6 + 37f02bf commit bbf84d8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

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

9599
self._turu_mock_store.inject_response(

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

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

9397
self._turu_mock_store.inject_response(

0 commit comments

Comments
 (0)