Uh oh!
There was an error while loading. Please reload this page.
_CField as a generic descriptor protocol - #10595
Conversation
This comment has been minimized.
This comment has been minimized.
junkmd
commented
Aug 17, 2023
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.
junkmd
commented
Aug 30, 2023
I added workarounds. |
srittau
commented
Sep 1, 2023
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] |
junkmd
commented
Sep 1, 2023
It's good catch. Thank you.
I did that. |
srittau
left a comment
There was a problem hiding this comment.
My ctypes knowledge is limited, but this looks like an improvement to me and primer output also looks good.
Please see #10567