-
Notifications
You must be signed in to change notification settings - Fork 36
for #30, adding type annotations #42
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 working on this @rrahkola!
I have noted a few changes below that I think would be good to make.
# Conflicts: # adafruit_bno08x/__init__.py
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 added a commit with the tweaks mentioned in prior reviews.
The latest version is looking good to me
Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP280 to 3.3.0 from 3.2.20: > Merge pull request adafruit/Adafruit_CircuitPython_BMP280#39 from somenice/main Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.2.3 from 1.2.2: > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#42 from rrahkola/dev/add_type_attributes Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 2.5.3 from 2.5.2: > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#117 from tekktrik/dev/fix-packaging Updating https://github.com/adafruit/Adafruit_CircuitPython_Dash_Dis to 1.1.16 from 1.1.15: > Merge pull request adafruit/Adafruit_CircuitPython_Dash_Dis#9 from julianaklulo/main Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.14.0 from 1.13.4: > Merge pull request adafruit/Adafruit_CircuitPython_Requests#132 from FoamyGuy/allow_redirects Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
Note: the BNO08X class property,
self._two_ended_sequence_numbers
, was initialized withsend
andreceive
entries, but was manipulated using integer keys. I simplified this to improve the mypy reporting by removing those initial entries.