-
Notifications
You must be signed in to change notification settings - Fork 21
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
Remove reassigning variables with new types, pass Mypy #66
Conversation
a0f5079
to
378e8e2
Compare
276466e
to
dc4bb0b
Compare
dc4bb0b
to
c4c4d67
Compare
…ning rename, remove type overrides more implicit types, and non-matching return types mypy caught errors
c4c4d67
to
7ded8d1
Compare
I did a quick pass over the changes this morning and it's looking good to me so far. Thanks for the readability and other improvements @matt-land! I'll take another look and test it out later tonight. |
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.
This looks good to me. Thanks again @matt-land!
I tested this version successfully on a Feather S2 TFT with a handful of the example scripts and images in this repo.
I've reverted the pre-commit config change for now. I'll make a note in the weeds for the meeting next week to discuss with @kattni and the team how we want to plan to roll out the change to start running mypy and the configuration and versions that it'll use.
Updating https://github.com/adafruit/Adafruit_CircuitPython_IRRemote to 4.1.14 from 4.1.13: > Merge pull request adafruit/Adafruit_CircuitPython_IRRemote#64 from dhalbert/handle-failedtodecode Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS to 4.5.8 from 4.5.7: > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#60 from zachariahpifer/fix_linear_and_angular_rates > Add upload url to release action > Add .venv to .gitignore Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 3.0.2 from 3.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#51 from jrrickerson/add_simpletest_example Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 1.17.1 from 1.17.0: > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#66 from matt-land/remove-type-changes > Add upload url to release action Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
Changes:
before
def foo(some_arg: Tree = None):
after
def foo(some_Arg: Optional[Tree] = None):
before:
after:
before:
after:
Testing