-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Invalid type for inverted IntFlag #13853
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
Comments
Hi @zoola969 Can I work on this issue? |
@vidhyavijayan3 Please, feel free! You can check out CONTRIBUTING.md and the Developer Guides for contributing guidelines and tips on where to start. Thanks! |
I think this is a bug in typeshed, not in mypy. The typeshed definition for |
Thank you both for the helpful responses! I'll take a closer look at the IntFlag definition in typeshed and work on submitting a PR to add the missing invert method. I really appreciate the guidance and I'm looking forward to contributing! |
@hauntsaninja it might make sense to transfer this to the typeshed issue tracker. @vidhyavijayan3 I think you just need to add a method here: Lines 227 to 231 in 1b267b2
|
Hi @A5rocks, thank you for the helpful pointer! I’ll go ahead and update the enum.pyi file in typeshed to add the missing invert method. Also, thanks @hauntsaninja for transferring the issue. That definitely makes sense. Looking forward to contributing! |
Bug Report
A type of inverted IntFlag is revealed as int instead of IntFlag
To Reproduce
Expected Behavior
Revealed type is "F"
Revealed type is "F"
Actual Behavior
Revealed type is "F"
Revealed type is "builtins.int"
Your Environment
pyproject.toml
:3.13
The text was updated successfully, but these errors were encountered: