Skip to content

Commit 76257e5

Browse files
Fix type checker issues in parallel tests by adding type ignore comments
Amp-Thread-ID: https://ampcode.com/threads/T-17f644e1-8fd3-4bb2-b2c6-bcb9119cfc98 Co-authored-by: Amp <[email protected]>
1 parent a3db3b2 commit 76257e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_parallel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def test_parallel_dict_invalid_input(self) -> None:
7272
invalid_data = ["not", "a", "dict"]
7373
with pytest.raises(TypeError):
7474
convert_dict_parallel(
75-
invalid_data, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2
75+
invalid_data, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2 # type: ignore
7676
)
7777

7878
# Passing None
7979
with pytest.raises(TypeError):
8080
convert_dict_parallel(
81-
None, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2
81+
None, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2 # type: ignore
8282
)
8383

8484
def test_parallel_list_invalid_input(self) -> None:
@@ -87,13 +87,13 @@ def test_parallel_list_invalid_input(self) -> None:
8787
invalid_data = {"not": "a list"}
8888
with pytest.raises(TypeError):
8989
convert_list_parallel(
90-
invalid_data, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2, chunk_size=100
90+
invalid_data, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2, chunk_size=100 # type: ignore
9191
)
9292

9393
# Passing None
9494
with pytest.raises(TypeError):
9595
convert_list_parallel(
96-
None, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2, chunk_size=100
96+
None, [], "root", True, dicttoxml.default_item_func, False, True, False, workers=2, chunk_size=100 # type: ignore
9797
)
9898

9999
def test_parallel_list_small(self) -> None:

0 commit comments

Comments
 (0)