Skip to content

Add and fix existing type hints #26

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 6 commits into from
Oct 3, 2022
Merged

Conversation

JulianOrteil
Copy link
Contributor

Addresses #18 and fixes various other existing type hint errors.

Of note, if it is desired, the setters for the DigitalInOut.direction and DigitalInOut.value properties could be removed to save space. Because the docstring already mentions these as being immutable, it would not be wrong to have Python raise an AttributeError natively IMO.

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.

Thanks for the PR! Feedback below:

@tekktrik
Copy link
Member

Also, sorry for the merge conflict! Just merged a PR a little bit ago.

@JulianOrteil
Copy link
Contributor Author

Should be ready for final review!

@JulianOrteil JulianOrteil requested a review from tekktrik October 2, 2022 03:12
@JulianOrteil JulianOrteil requested a review from tekktrik October 2, 2022 19:42
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 to me, thanks!

@tekktrik tekktrik merged commit 3d68487 into adafruit:main Oct 3, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 3, 2022
@tekktrik tekktrik mentioned this pull request Jan 16, 2023
9 tasks
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