Skip to content

added typing on six different funcs: validate, generate, urlsafe_b64e… #11

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 4 commits into from
May 9, 2022

Conversation

ktkinsey37
Copy link
Contributor

…ncode, urlsafeb64_decode, _bytes_from_decode_data, translate

…ncode, urlsafeb64_decode, _bytes_from_decode_data, translate
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.

The types all look good to me.

We'll need to add circuitpython_typing as a new dependency for that import of ReadableBuffer though.

It can get added in setup.py here:

install_requires=["Adafruit-Blinka"],

install_requires=["Adafruit-Blinka", "adafruit-circuitpython-typing"],

and in requirements.txt: https://github.com/adafruit/Adafruit_CircuitPython_JWT/blob/main/requirements.txt#L5

#...
Adafruit-Blinka
adafruit-circuitpython-typing

Thanks again for all of your help on the typing PRs @ktkinsey37

@tekktrik tekktrik linked an issue May 2, 2022 that may be closed by this pull request
6 tasks
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. Tested successfully on PyPortal.

Thanks again for all of your work on this @ktkinsey37

@FoamyGuy FoamyGuy merged commit d50800d into adafruit:main May 9, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 10, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO055 to 5.4.1 from 5.4.0:
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM9x to 2.2.4 from 2.2.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM9x#73 from jcerise/65/missing_type_annotations
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.
  > Fixed readthedocs build
  > Consolidate Documentation sections of README

Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 1.16.1 from 1.16.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#60 from matt-land/add-typing

Updating https://github.com/adafruit/Adafruit_CircuitPython_JWT to 1.2.6 from 1.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_JWT#11 from ktkinsey37/typing
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
  > Update Black to latest.
  > Fixed readthedocs build
  > Consolidate Documentation sections of README

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.7.2 from 0.7.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#47 from jepler/example-updates-background
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#46 from jepler/neopixel-match-core
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#45 from jepler/background-morse
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