-
Notifications
You must be signed in to change notification settings - Fork 6
Type Annotations #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
Type Annotations #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.
Re-running mypy on this branch I found one set of arguments missed.
Beyond that, things are looking pretty good to me.
I was able to successfully import from the library on a Feather S2:
from adafruit_max7219 import matrices
But have not performed more in depth testing. I did find one of these chips in my parts bin though so I'll try to get everything wired up to test it in the next few days.
Thank you for updating the docstrings and fixing the comment that referenced the wrong chip / device! |
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.
These changes look good to me. Tested successfully on:
Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit Feather RP2040 with rp2040
Board ID:adafruit_feather_rp2040
Thanks again for working on this @FlantasticDan
Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX7219 to 1.4.0 from 1.3.4: > Merge pull request adafruit/Adafruit_CircuitPython_MAX7219#35 from FlantasticDan/type-annotations > Globally disabled consider-using-f-string pylint check > Moved default branch to main > Moved CI to Python 3.7 > Added help text and problem matcher > Added pull request template > "Increase duplicate code check threshold " Updating https://github.com/adafruit/Adafruit_CircuitPython_SGP40 to 1.3.1 from 1.3.0: > Merge pull request adafruit/Adafruit_CircuitPython_SGP40#13 from caternuson/iss12_pypi > Globally disabled consider-using-f-string pylint check
Implements type annotations as described by #34:
As I was going through adding types, I also updated the docstrings to match the function call.