-
Notifications
You must be signed in to change notification settings - Fork 7
datetime.replace: Fix type annotations of parameters #33
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
Conversation
If specified, these parameters must be integers.
just for background, I've got a project that optionally uses adafruit_datetime (https://github.com/jepler/wwvbpy). I started this before there were any typing annotations in adafruit_datetime, and created my own stubs that I ship within the wwvbpy source distribution. I needed these stubs so that my project was mypy-clean under the --strict flag. Something made me say, hey, wait, adafruit_datetime (now) has annotations. True, and mypy can be made to use them through a stanza in settings.toml. But, some of the types I depended on are incorrect in the inline type hints. Hence this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
and depend on correct typing info (+ override to use it). The correct typing info won't exist until a release of adafruit_datetime with adafruit/Adafruit_CircuitPython_datetime#33 is made, likely soon.
thanks! |
Updating https://github.com/adafruit/Adafruit_CircuitPython_OV5640 to 1.2.7 from 1.2.6: > Merge pull request adafruit/Adafruit_CircuitPython_OV5640#39 from relic-se/contrast-getter > Merge pull request adafruit/Adafruit_CircuitPython_OV5640#38 from relic-se/contrast-range-docs Updating https://github.com/adafruit/Adafruit_CircuitPython_OV to 1.1.4 from 1.1.3: > Merge pull request adafruit/Adafruit_CircuitPython_OV#23 from adafruit/use_ruff Updating https://github.com/adafruit/Adafruit_CircuitPython_SHT31D to 2.3.27 from 2.3.26: > Merge pull request adafruit/Adafruit_CircuitPython_SHT31D#38 from adafruit/use_ruff Updating https://github.com/adafruit/Adafruit_CircuitPython_TCA8418 to 1.0.17 from 1.0.16: > Merge pull request adafruit/Adafruit_CircuitPython_TCA8418#17 from FoamyGuy/displayio_api_update Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_Beacon to 1.0.9 from 1.0.8: > Merge pull request adafruit/Adafruit_CircuitPython_BLE_Beacon#5 from adafruit/use_ruff Updating https://github.com/adafruit/Adafruit_CircuitPython_datetime to 1.4.2 from 1.4.1: > Merge pull request adafruit/Adafruit_CircuitPython_datetime#33 from jepler/datetime-replace-typing Updating https://github.com/adafruit/Adafruit_CircuitPython_MIDI_Parser to 1.2.0 from 1.1.0: > Merge pull request adafruit/Adafruit_CircuitPython_MIDI_Parser#3 from adafruit/polyphony Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 4.0.4 from 4.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#72 from adafruit/use_ruff Updating https://github.com/adafruit/Adafruit_CircuitPython_PYOA to 2.6.4 from 2.6.3: > Merge pull request adafruit/Adafruit_CircuitPython_PYOA#42 from adafruit/use_ruff Updating https://github.com/adafruit/Adafruit_CircuitPython_Radial_Controller to 1.0.15 from 1.0.14: > Merge pull request adafruit/Adafruit_CircuitPython_Radial_Controller#4 from adafruit/use_ruff
and depend on correct typing info (+ override to use it). The correct typing info won't exist until a release of adafruit_datetime with adafruit/Adafruit_CircuitPython_datetime#33 is made, likely soon.
If specified, these parameters must be integers.