Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix error message when subclassing TypeVarTuple #679

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

Open
JanEricNitschke wants to merge 8 commits into python:main
base: main
Choose a base branch
Loading
from JanEricNitschke:fix-typevar-tuple-subclass-error

Conversation

@JanEricNitschke
Copy link
Contributor

@JanEricNitschke JanEricNitschke commented Sep 13, 2025

Copy link

codecov bot commented Sep 13, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.36%. Comparing base (9215c95) to head (a49d36d).

@@ Coverage Diff @@
## main #679 +/- ##
==========================================
- Coverage 97.36% 97.36% -0.01% 
==========================================
 Files 3 3 
 Lines 7680 7706 +26 
==========================================
+ Hits 7478 7503 +25 
- Misses 202 203 +1 
Flag Coverage Δ
3.10 88.98% <85.71%> (-0.02%) ⬇️
3.10.4 88.98% <85.71%> (-0.02%) ⬇️
3.11 88.22% <89.28%> (?)
3.11.0 87.46% <89.28%> (+<0.01%) ⬆️
3.12 88.18% <89.28%> (+0.01%) ⬆️
3.12.0 88.17% <89.28%> (+0.01%) ⬆️
3.13 82.38% <75.00%> (?)
3.13.0 82.38% <75.00%> (-0.01%) ⬇️
3.14 78.84% <75.00%> (+<0.01%) ⬆️
3.9 89.69% <85.71%> (-0.02%) ⬇️
3.9.12 89.69% <85.71%> (-0.02%) ⬇️
pypy3.10 88.81% <85.71%> (-0.02%) ⬇️
pypy3.11 88.08% <89.28%> (+<0.01%) ⬆️
pypy3.9 89.52% <85.71%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/test_typing_extensions.py 98.38% <100.00%> (-0.02%) ⬇️
src/typing_extensions.py 93.90% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
CHANGELOG.md Outdated
@@ -1,5 +1,6 @@
# Unreleased

- Fix error message when trying to subclass `typing_extensions.TypeVarTuple`.
Copy link
Contributor

@brianschubert brianschubert Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

Suggested change
- Fix error message when trying to subclass `typing_extensions.TypeVarTuple`.
- Update error message when attempting to subclass `typing_extensions.TypeVarTuple`
to align with the message produced by `typing` in Python 3.12+.

The upstream message changed as part of python/cpython#103764 if that's worth incorporating.

Also, feel free to credit yourself by appending Patch by $your_preferred_name :-)

Copy link
Contributor Author

@JanEricNitschke JanEricNitschke Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, yours is better. Took that and added the patch by line <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JelleZijlstra JelleZijlstra JelleZijlstra left review comments

+1 more reviewer

@brianschubert brianschubert brianschubert left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /