Skip to content

Add missing type annotations #108

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

Add missing type annotations #108

merged 3 commits into from
Oct 10, 2022

Conversation

tcfranks
Copy link
Contributor

resolves #85
submitted for review / comment

@tekktrik tekktrik self-requested a review September 29, 2022 15:04
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.

Thanks for working on this (and so many others) @tcfranks!

I noted a few arguments without types, but everything else looking good to me beyond those.

result = super().__get__(obj, objtype)
return tuple(self.scale * v for v in result)

def __set__(self, obj, value):
def __set__(self, obj, value) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

should the obj and value here have types? In the set function a little below here it has int and str for their types, would it be the same for this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Must of missed them? In ny until the weekend with just my phone, so nothing in this till then

@tekktrik tekktrik removed their request for review October 3, 2022 15:06
@tcfranks
Copy link
Contributor Author

tcfranks commented Oct 9, 2022

resubmitted get and set changes

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 again.

@FoamyGuy FoamyGuy merged commit 7e09e71 into adafruit:main Oct 10, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 11, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO055 to 5.4.7 from 5.4.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO055#108 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM69 to 2.1.13 from 2.1.12:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM69#42 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.19.9 from 1.19.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#76 from The-Debarghya/bug-75-zerodivisionerror

Updating https://github.com/adafruit/Adafruit_CircuitPython_Logging to 4.2.0 from 4.1.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_Logging#40 from tekktrik/dev/allow-root-logger

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 5.5.2 from 5.5.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#122 from calcut/fetch_all_messages_in_loop

Updating https://github.com/adafruit/Adafruit_CircuitPython_PYOA to 2.5.12 from 2.5.11:
  > Merge pull request adafruit/Adafruit_CircuitPython_PYOA#37 from tekktrik/dev/fix-install
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