-
Notifications
You must be signed in to change notification settings - Fork 256
Fix typing errors for MicroPython #230
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
Ok... weird error.
|
See extensive discussion in #circuitpython-dev. Black and click need to be moved up to the latest versions. |
Hmm, this may be problematic:
This requirement pretty much breaks what the PR fixes. |
Testing on Raspberry Pi, enclosing |
Yes, this is why I added |
The only reason to include |
Hmm, let me test without it |
Ok, everything seems to work without it and I'm ok with not having it since we require 3.7 anyways. |
Importing Detector for typing purposes was proving to be problematic without the futures line, so I just removed it. Just a normal detector import (without the TYPE_CHECKING line) caused a circular import issue anyways. |
Sweet, so this was tested on MicroPython, Linux Raspberry Pi, and passed all the the checks. |
I think the Jetson guides will need to describe how to install Python 3.7 or later for user-only use (not updating the system Python). I would expect this is possible. https://forums.developer.nvidia.com/t/python-3-6-approaching-end-of-life/194961 and other places in the that forum discuss using later versions of Python (some successful, some not). |
Ok, I'll take a look tomorrow. This PR mainly is for fixing usage on MicroPython which does not work at all at this point in time. |
Can you add the |
Ah, never mind, sounds like it was causing problems, never mind. |
It might be possible to use quote on the type name so that an import isn't necessary. |
|
Is this waiting on something from me? |
Not sure if @dhalbert had any followup about |
I think I want to leave it out because it's really touchy when trying to get it working all with MicroPython, CPython, and PyLint. |
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.
Sounds good! In that case, the typing looks good!
Thanks. |
Fixes #220. Tested on Raspberry Pi Pico with latest MicroPython.