Skip to content

Commit 05605dd

Browse files
Fix type checking for 3.10
1 parent 579b9d3 commit 05605dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/dataframe/test_dataframe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from datetime import datetime, timezone
3-
from typing import List, Optional
3+
from typing import Any, cast, List, Optional
44

55
import pytest # type: ignore
66
import responses
@@ -830,4 +830,5 @@ def test__append_table_data__unsupported_type_raises(
830830
):
831831
table_id = create_table(basic_table_model)
832832
with pytest.raises(ValueError, match="Unsupported type"):
833-
client.append_table_data(table_id, 123)
833+
# cast to Any to satisfy type checker while still exercising runtime path
834+
client.append_table_data(table_id, cast(Any, 123))

0 commit comments

Comments
 (0)