From 013cef085b43819dc46ba24530d85556a8c19566 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 6 Sep 2025 15:18:27 -0700 Subject: [PATCH] Update dependency pyright to v1.1.405 (#14673) * Update dependency pyright to v1.1.405 * Remove pyright: ignore comment from pow tests Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Brian Schubert --- requirements-tests.txt | 2 +- stdlib/@tests/test_cases/builtins/check_pow.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 29f920d08..862278ccc 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 63ca9a896..6ad6116cf 100644 --- a/stdlib/@tests/test_cases/builtins/check_pow.py +++ b/stdlib/@tests/test_cases/builtins/check_pow.py @@ -86,9 +86,7 @@ assert_type((-95) ** 8.42, Any) # 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: