-
Notifications
You must be signed in to change notification settings - Fork 53
initial typing support, mypy passes #111
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
f0ff6d6
to
e758c6b
Compare
e758c6b
to
5780e9b
Compare
add missing copyright statements to .pre-commit-config.yaml, gitignore
5780e9b
to
79eb6fc
Compare
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.
Thanks for working on this @matt-land!
I had a look over this, majority is looking good to me. I had a few questions and suggested changes that I've noted in comments at the relevant sections.
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.
The latest version is looking pretty much good to me.
One more tweak that I found taking another look over it this morning is noted below.
I've opened up a PR in the typing repo to add the requisite attributes on our PIL.Image stand-in.
adafruit_rgb_display/rgb.py
Outdated
"""Dummy switch_to_input method""" | ||
|
||
@property | ||
def value(self): | ||
def value(self) -> digitalio.DigitalInOut: |
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.
I missed this on the first pass, I think value
would be boolean True / False.
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.
fixed. thanks for the quick reviews
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.
Latest version looks good to me.
Thanks again for your contributions across libraries @matt-land!
nothing in here should really change any functionality, but I did give it a quick test to double check on a Feather S2 TFT with the built-in display using the simpletest from this repo adapted to the correct pins. All is behaving as expected.
Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.11.1 from 3.11.0: > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#111 from matt-land/add-types-pycon-2023 Updating https://github.com/adafruit/Adafruit_CircuitPython_Ducky to 1.1.0 from 1.0.11: > Merge pull request adafruit/Adafruit_CircuitPython_Ducky#8 from pstray/no_sleep > Merge pull request adafruit/Adafruit_CircuitPython_Ducky#11 from FoamyGuy/ramsrq_fixes > Add upload url to release action > Add .venv to .gitignore Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
This adds support for #96
Changes
Testing