-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
_CField
as a generic descriptor protocol
#10595
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
Conversation
This comment has been minimized.
This comment has been minimized.
Should I consider adding workarounds for the error that raises when combining For example, using something like |
error: Expected type arguments for generic class "_CField" (reportMissingTypeArgument) see python#10595
This comment has been minimized.
This comment has been minimized.
I added workarounds. |
Thanks! I assume many of the |
Diff from mypy_primer, showing the effect of this PR on open source code: AutoSplit (https://github.com/Toufool/AutoSplit)
+ src/utils.py:104:26: error: Redundant cast to "int" [redundant-cast]
+ src/utils.py:105:25: error: Redundant cast to "int" [redundant-cast]
+ src/utils.py:106:20: error: Redundant cast to "int" [redundant-cast]
+ src/utils.py:107:21: error: Redundant cast to "int" [redundant-cast]
|
It's good catch. Thank you.
I did that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My ctypes knowledge is limited, but this looks like an improvement to me and primer output also looks good.
Please see #10567