-
Notifications
You must be signed in to change notification settings - Fork 24
Missing Type Annotations #36
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
added return values imported SPI and DigitalInOut to use the types for __init__ on BMP_SPI. imported 'optional' from typing for the same function.
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 pull request! I added some feedback, let me know if there's anything I can do to clarify or help!
|
Thanks for the comments and tips! I appreciate the very helpful review. I'll resolve these in a jiffy |
Revert "added return values to the remaining setters" This reverts commit 84f1bb4.
changed a return type from int to None which i set wrong in an earlier commit
imported I2C from busio.i2c
…nit func on the SPI class. Added return types for a few more fucntions
|
@tekktrik changed as per suggestions, and added return types for all functions in this file. Thanks again for the helpful comments! this is my first time contributing so I'm happy to help out! |
|
Thanks for making these changes and contributing the typing info @billvanleeuwen424! I've got this one on my list to take a look over later on today as well. Congratz on your first contribution and thanks again for helping us out! 🎉 |
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 have a few more requested changes. But it's looking good to me beyond these. Thanks again @billvanleeuwen424
|
Ah my bad on those! Thanks for the catch |
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 again @billvanleeuwen424 🎉
Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP280 to 3.2.13 from 3.2.12: > Merge pull request adafruit/Adafruit_CircuitPython_BMP280#36 from billvanleeuwen424/typeAnnotations Updating https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground to 5.1.0 from 5.0.5: > Merge pull request adafruit/Adafruit_CircuitPython_CircuitPlayground#115 from kattni/buttons
Added types for returns and inputs to all of the functions mentioned in the issue.
imported 2 types (SPI and Digital InOut from busio, and digitalio respectively), and imported Optional from typing.