Skip to content

Commit 013cef0

Browse files
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 <[email protected]>
1 parent 3e75cd8 commit 013cef0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
33
mypy==1.17.1
4-
pyright==1.1.404
4+
pyright==1.1.405
55

66
# Libraries used by our various scripts.
77
aiohttp==3.12.15

stdlib/@tests/test_cases/builtins/check_pow.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@
8686
# Fraction.__pow__/__rpow__ with modulo parameter
8787
# With the None parameter, we get the correct type, but with a non-None parameter, we receive TypeError
8888
if sys.version_info >= (3, 14):
89-
# pyright infers Fraction | float | complex, while mypy infers Fraction.
90-
# This is probably because of differences in @overload handling.
91-
assert_type(pow(Fraction(3, 4), 2, None), Fraction) # pyright: ignore[reportAssertTypeFailure]
89+
assert_type(pow(Fraction(3, 4), 2, None), Fraction)
9290
# Non-none modulo should fail
9391
pow(Fraction(3, 4), 2, 1) # type: ignore[misc]
9492
else:

0 commit comments

Comments
 (0)