Skip to content

Add type hints #119

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
Oct 11, 2021
Merged

Add type hints #119

merged 2 commits into from
Oct 11, 2021

Conversation

jsymons
Copy link
Contributor

@jsymons jsymons commented Oct 7, 2021

Adds type hints to neopixel.py as per #118

@tannewt tannewt requested a review from a team October 7, 2021 17:08
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.

These changes look good to me. I tested neopixel_pixel.py and neopixel_simpletest.py successfully on:

Adafruit CircuitPython 7.0.0-179-ge8a2e4a62-dirty on 2021-10-09; Adafruit Feather RP2040 with rp2040
Board ID:adafruit_feather_rp2040

Since this is such a high profile library I'd like to get another set of eyes on it as well, and hopefully get the rpi example tested with Blinka.

Copy link
Member

@gamblor21 gamblor21 left a comment

Choose a reason for hiding this comment

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

I tested it before the last commit but everything looks fine to me as well.

@tannewt tannewt merged commit eab2911 into adafruit:main Oct 11, 2021
@FoamyGuy FoamyGuy mentioned this pull request Oct 12, 2021
3 tasks
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 13, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_ILI9341 to 1.3.1 from 1.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ILI9341#29 from FoamyGuy/type_info
  > Globally disabled consider-using-f-string pylint check

Updating https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel to 6.2.2 from 6.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_NeoPixel#119 from jsymons/typing
  > Globally disabled consider-using-f-string pylint check

Updating https://github.com/adafruit/Adafruit_CircuitPython_Seesaw to 1.10.0 from 1.9.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#85 from ladyada/master
  > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#81 from FoamyGuy/use_rainbowio
  > Globally disabled consider-using-f-string pylint check

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1306 to 2.12.2 from 2.12.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1306#69 from careyk007/add_missing_type_annotations
  > Globally disabled consider-using-f-string pylint check

Updating https://github.com/adafruit/Adafruit_CircuitPython_ST7789 to 1.5.2 from 1.5.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_ST7789#27 from helgibbons/Display-Pack-2.0
  > Globally disabled consider-using-f-string pylint check
@jsymons jsymons deleted the typing branch October 15, 2021 21:25
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.

4 participants