Skip to content

Conversation

@brentyi
Copy link
Contributor

@brentyi brentyi commented Mar 12, 2023

Hi!

There are a handful of functions in adafruit_ble that clearly expect advertisement/service types, but where the signature specifies advertisement/service instances.

Just fixed the cases I noticed, would be nice for suppressing some errors.

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. Thank you for the fix @brentyi!

For anyone interested there is more info about typing.Type here: https://docs.python.org/3/library/typing.html#typing.Type that explains the difference in the code changed with this PR.

@FoamyGuy FoamyGuy merged commit 610b185 into adafruit:main Mar 13, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 13, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.1.10 from 1.1.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#39 from xenomorpheus/main
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_DRV2605 to 1.3.0 from 1.2.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_DRV2605#34 from kriswilk/patch-1
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.2.11 from 2.2.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#23 from edanidzerda/main
  > Add upload url to release action

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 9.0.2 from 9.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#183 from brentyi/main
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.26.0 from 2.24.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#184 from Neradoc/fix-multiple-lines-in-bitmaplabel
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#186 from Neradoc/fix-bitmap-label-anchored-position

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_GFX

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.

2 participants