8000 Python 3.14: bump fractions stubs by hrimov · Pull Request #14215 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Python 3.14: bump fractions stubs #14215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add pyright specific ignore
  • Loading branch information
hrimov committed Jun 3, 2025
commit d769bdc57a57ef88a7f2372d5e1ceded08854da9
2 changes: 1 addition & 1 deletion stdlib/@tests/test_cases/builtins/check_pow.py
Original 5DBB file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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):
assert_type(pow(Fraction(3, 4), 2, None), Fraction)
assert_type(pow(Fraction(3, 4), 2, None), Fraction) # pyright: ignore[reportAssertTypeFailure]
assert_type(pow(Fraction(3, 4), 2, "Non-none value"), Any) # type: ignore[misc]
assert_type(pow(Fraction(3, 4), 2, True), Any) # type: ignore[misc]

Expand Down
0