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 #24

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Add Missing Type Annotations #24

merged 1 commit into from
Sep 21, 2022

Conversation

tcfranks
Copy link
Contributor

resolves #23

Please see (new) line 71 for related question - returns self

submitted for review / comment

@tekktrik tekktrik requested a review from a team September 20, 2022 00:56
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.

Yup, you got it! It's a forward reference of itself, the underscore is irrelevant to typing - it just signify to people importing this file that _BitBangIO isn't intended to be used directly (it's a convention of naming classes). Essentially, you want people importing classes like I2C here and not the basis class _BitBangIO that isn't intended for direct use itself.

Nice work!

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

2 participants