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 <brianm.schubert@gmail.com>
This commit is contained in:
renovate[bot]
2025-09-06 15:18:27 -07:00
committed by GitHub
parent 3e75cd86f9
commit 013cef085b
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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
@@ -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: