Skip to content
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

Add Missing type annotations #5

Merged
merged 7 commits into from
Sep 16, 2022
Merged

Add Missing type annotations #5

merged 7 commits into from
Sep 16, 2022

Conversation

tcfranks
Copy link
Contributor

resolves #2
submitted for review / comment

WARNING: I'm squishy on lines 338 and up!! (didn't find much info on the values, but pretty sure i've used variable/constant definitions which are sus.....)

@tekktrik tekktrik self-requested a review September 12, 2022 17:23
@tekktrik
Copy link
Member

I started looking at this, I can continue this evening. If you want to take a shot at the remaining ones, go for it, but I"m also happy to help with them if you'd like!

@tcfranks
Copy link
Contributor Author

the biggest issue is digitalio.Pull is an enum, right? so what is the value of digitalio.Pull.UP?

@tekktrik
Copy link
Member

tekktrik commented Sep 12, 2022

So, I don't think they're technically Enums, but I think it's fair to treat it like they are. But the exact typing of "the value of digitalio.Pull.Up" should be Literal[digitalio.Pull.Up]

Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you also want to take a stab at annotating the few functions that still need annotations!

adafruit_tca8418.py Outdated Show resolved Hide resolved
adafruit_tca8418.py Outdated Show resolved Hide resolved
adafruit_tca8418.py Outdated Show resolved Hide resolved
adafruit_tca8418.py Outdated Show resolved Hide resolved
adafruit_tca8418.py Outdated Show resolved Hide resolved
adafruit_tca8418.py Outdated Show resolved Hide resolved
@tcfranks
Copy link
Contributor Author

resubmitted for a review of missing items and changes

Copy link
Member

@tekktrik tekktrik 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, thanks!

@tekktrik tekktrik merged commit f68b509 into adafruit:main Sep 16, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 16, 2022
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.

Missing Type Annotations
2 participants