-
Notifications
You must be signed in to change notification settings - Fork 9
Add and fix existing type hints #26
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
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 the PR! Feedback below:
Also, sorry for the merge conflict! Just merged a PR a little bit ago. |
Should be ready for final review! |
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.
Looks good to me, thanks!
Updating https://github.com/adafruit/Adafruit_CircuitPython_74HC595 to 1.4.1 from 1.4.0: > Merge pull request adafruit/Adafruit_CircuitPython_74HC595#26 from JulianOrteil/main Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP4725 to 1.4.11 from 1.4.10: > Merge pull request adafruit/Adafruit_CircuitPython_MCP4725#22 from tcfranks/main Updating https://github.com/adafruit/Adafruit_CircuitPython_SGP40 to 1.3.9 from 1.3.8: > Merge pull request adafruit/Adafruit_CircuitPython_SGP40#15 from patrickslarson8/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1681 to 1.0.14 from 1.0.13: > Merge pull request adafruit/Adafruit_CircuitPython_SSD1681#10 from tcfranks/main Updating https://github.com/adafruit/Adafruit_CircuitPython_TCA8418 to 1.0.4 from 1.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_TCA8418#9 from Neradoc/homepage-fix
Addresses #18 and fixes various other existing type hint errors.
Of note, if it is desired, the setters for the
DigitalInOut.direction
andDigitalInOut.value
properties could be removed to save space. Because the docstring already mentions these as being immutable, it would not be wrong to have Python raise anAttributeError
natively IMO.