8000 Supply missing type annotations by tcfranks · Pull Request #22 · adafruit/Adafruit_CircuitPython_TLC59711 · GitHub
[go: up one dir, main page]

Skip to content

Supply missing type annotations #22

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

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 19, 2022
Merged

Supply missing type annotations #22

merged 5 commits into from
Dec 19, 2022

Conversation

tcfranks
Copy link
Contributor

resolves #20
submitted for review / comment

@tcfranks
Copy link
Contributor Author

nevermind - evidently it DID work and the page was giving me an old run with the same error. evidently it needed more time to refresh than I gave it.

"""Convert 0..1 Float Value to 16bit (0..65535) Range."""
# check if value is in range
if not 0.0 <= value[0] <= 1.0:
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like maybe this was never used before? It looks like it would raise an exception error, the only place that calls this function verifies the type of value as a float before calling in to here so it could never allow this bracketed index access AFAIK.

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. Thanks for taking on another one of the typing PRs @tcfranks

@FoamyGuy FoamyGuy merged commit 62deac3 into adafruit:main Dec 19, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 20, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.2.10 from 2.2.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#21 from dhalbert/esp32-s3-retries
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_TLC59711 to 2.0.9 from 2.0.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_TLC59711#22 from tcfranks/main
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 1.12.17 from 1.12.16:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#76 from BiffoBear/Rename_example_to_prevent_clash_with_pytest

Updating https://github.com/adafruit/Adafruit_CircuitPython_framebuf to 1.5.0 from 1.4.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#48 from philsuth/rgb565
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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
0