Skip to content

Commit a46daf5

Browse files
[Internal] fix tycheck quality (#3320)
* fix ty check * pin pytest-rerunfailures
1 parent b698915 commit a46daf5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_version() -> str:
8383
"pytest-xdist",
8484
"pytest-vcr", # to mock Inference
8585
"pytest-asyncio", # for AsyncInferenceClient
86-
"pytest-rerunfailures", # to rerun flaky tests in CI
86+
"pytest-rerunfailures<16.0", # to rerun flaky tests in CI
8787
"pytest-mock",
8888
"urllib3<2.0", # VCR.py broken with urllib3 2.0 (see https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html)
8989
"soundfile",

src/huggingface_hub/inference/_mcp/_cli_hacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _patch_anyio_open_process():
1717

1818
if getattr(anyio, "_tiny_agents_patched", False):
1919
return
20-
anyio._tiny_agents_patched = True
20+
anyio._tiny_agents_patched = True # ty: ignore[invalid-assignment]
2121

2222
original_open_process = anyio.open_process
2323

0 commit comments

Comments
 (0)