Skip to content

Commit 27387dd

Browse files
committed
fix: ci.
1 parent 6d8d8ff commit 27387dd

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

turu-snowflake/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ typecheck = "pyright src/** tests/**"
7373
test = "pytest -n auto --cov=src --cov-report=term --cov-report=xml tests"
7474
ci = "task format && task lint && task typecheck && task test"
7575

76+
[tool.pyright]
77+
reportOverlappingOverload = "none"
78+
7679
[build-system]
7780
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
7881
build-backend = "poetry_dynamic_versioning.backend"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def inject_response_from_csv( # type: ignore[override]
131131
)
132132

133133
else:
134-
super().inject_response_from_csv(row_type, filepath, **options)
134+
super().inject_response_from_csv(
135+
cast(Optional[Type[GenericRowType]], row_type), filepath, **options
136+
)
135137

136138
return self

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def inject_response_from_csv( # type: ignore[override]
133133
)
134134

135135
else:
136-
super().inject_response_from_csv(row_type, filepath, **options)
136+
super().inject_response_from_csv(
137+
cast(Optional[Type[GenericRowType]], row_type), filepath, **options
138+
)
137139

138140
return self

turu-snowflake/tests/turu/test_snowflake_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def test_inject_pandas_response_from_csv_with_pandera_validation(
288288
self, mock_connection: turu.snowflake.MockConnection
289289
):
290290
import pandas as pd
291-
import pandera as pa
291+
import pandera as pa # type: ignore[import]
292292

293293
class RowModel(pa.DataFrameModel):
294294
ID: pa.Int64

turu-snowflake/tests/turu/test_snowflake_mock_async.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,15 @@ async def test_inject_pandas_response_from_csv(
395395
) as cursor:
396396
assert (await cursor.fetch_pandas_all()).equals(expected)
397397

398-
@pytest.mark.skipif(not USE_PANDAS, reason="pandas is not installed")
398+
@pytest.mark.skipif(
399+
not (USE_PANDAS and USE_PANDERA), reason="pandas is not installed"
400+
)
399401
@pytest.mark.asyncio
400402
async def test_inject_pandas_response_from_csv_with_pandera_validation(
401403
self, mock_async_connection: turu.snowflake.MockAsyncConnection
402404
):
403405
import pandas as pd
404-
import pandera as pa
406+
import pandera as pa # type: ignore[import]
405407

406408
class RowModel(pa.DataFrameModel):
407409
ID: pa.Int64

0 commit comments

Comments
 (0)