-
Couldn't load subscription status.
- Fork 9
Typing fixes #35
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
Typing fixes #35
Conversation
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.
Now that you added the imports, can you actually remove some of the double-quotes around typenames, like "rgbmatrix.RGBMatrix" -> rgbmatrix.RGBMatrix? Or is that still not possible because these are not in CPython?
|
@dhalbert I removed a random selection and didn't get any additional errors... So looks like we should. Would you want that in this PR or a follow up? |
|
Go ahead and do it in this one. |
|
@dhalbert looks like we can't. Since it's not defined except for typing it fails install (see the checks) |
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.
OK, this looks good! I'll release so you can use for the libraries that depend on these fixes.
In this update:
isortto organize importsTYPE_CHECKINGimport types fromcircuitpython-stubs_FakeSSLContextinsocket.pyto simplify typing in other libraries