diff --git a/requirements-tests.txt b/requirements-tests.txt index 29f920d081f3..862278cccb52 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,7 +1,7 @@ # Type checkers that we test our stubs against. These should always # be pinned to a specific version to make failure reproducible. mypy==1.17.1 -pyright==1.1.404 +pyright==1.1.405 # Libraries used by our various scripts. aiohttp==3.12.15 diff --git a/stdlib/@tests/test_cases/builtins/check_pow.py b/stdlib/@tests/test_cases/builtins/check_pow.py index 63ca9a89663e..6ad6116cf578 100644 --- a/stdlib/@tests/test_cases/builtins/check_pow.py +++ b/stdlib/@tests/test_cases/builtins/check_pow.py @@ -86,9 +86,7 @@ # Fraction.__pow__/__rpow__ with modulo parameter # With the None parameter, we get the correct type, but with a non-None parameter, we receive TypeError if sys.version_info >= (3, 14): - # pyright infers Fraction | float | complex, while mypy infers Fraction. - # This is probably because of differences in @overload handling. - assert_type(pow(Fraction(3, 4), 2, None), Fraction) # pyright: ignore[reportAssertTypeFailure] + assert_type(pow(Fraction(3, 4), 2, None), Fraction) # Non-none modulo should fail pow(Fraction(3, 4), 2, 1) # type: ignore[misc] else: