-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
NamedTuple Subclass Thinking It Returns a Tuple #9147
Comments
@Py-mon, sorry for the long delay on this.
This is by design, since you've annotated the def __add__(self, vector: tuple[int, int]): |
@debonte The type of |
I see. I agree that's weird. I'm not super familiar with Transferring to Pyright. |
…he narrowed type is `Self` or another bound type variable. This addresses #9147.
Yes, the type of This will be fixed in the next release of pyright. |
This is addressed in pyright 1.1.384 |
Environment data
Code Snippet
Expected behavior
When hovering over vector, it is the type
Vector
Actual behavior
When hovering over vector, it is the type
tuple[int, int]
Logs
The text was updated successfully, but these errors were encountered: