Skip to content

Add type hints #22

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

Merged
merged 2 commits into from
Dec 24, 2021
Merged

Add type hints #22

merged 2 commits into from
Dec 24, 2021

Conversation

tekktrik
Copy link
Member

@tekktrik tekktrik commented Nov 17, 2021

Addresses Issue #20

It's worth mentioning that I typed the ack getter and setter as int because while you can use bool to set it, it returns an int which means you can't test for identity (is), only value. I changed the text of the associated potential ValueError raised to reflect this. I could definitely make a change to the code to make it truly bool but wanted to ask if it's worth doing.

@tannewt tannewt requested a review from a team November 17, 2021 18:22
Copy link
Contributor

@FoamyGuy FoamyGuy left a 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 @tekktrik

@FoamyGuy FoamyGuy merged commit 523f7af into adafruit:main Dec 24, 2021
@FoamyGuy FoamyGuy mentioned this pull request Dec 24, 2021
5 tasks
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 25, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_CAP1188 to 1.3.2 from 1.3.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_CAP1188#24 from tekktrik/doc/add-typing
  > update rtd py version

Updating https://github.com/adafruit/Adafruit_CircuitPython_VEML6070 to 3.1.9 from 3.1.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_VEML6070#22 from tekktrik/feature/add-typing
  > update rtd py version

Updating https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing to 1.14.4 from 1.14.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_FeatherWing#76 from FoamyGuy/pixelmatrix_fix
  > update rtd py version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants