| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Should I consider adding workarounds for the error that raises when combining stubs/pyserial/serial/win32.pyi with Pyright? For example, using something like _CField[Any, Any, Any]. |
Sorry, something went wrong.
error: Expected type arguments for generic class "_CField" (reportMissingTypeArgument) see python#10595
I added workarounds. |
Sorry, something went wrong.
|
Thanks! I assume many of the _CField[Any, Any, Any] annotations could be improved in the future? In that case, please use Incomplete (from _typeshed) instead of Any to mark that fact. |
Sorry, something went wrong.
|
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]
|
Sorry, something went wrong.
|
It's good catch. Thank you.
I did that. |
Sorry, something went wrong.
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.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Please see #10567