Skip to content
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

typing improvements #153

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

typing improvements #153

wants to merge 2 commits into from

Conversation

DrPyser
Copy link
Contributor

@DrPyser DrPyser commented Oct 25, 2024

Should not be merged until other projects which use this library are updated to account for new type errors.

Copy link
Contributor

Build succeeded.
https://zuul.wazo.community/zuul/t/local/buildset/6ca80c8e654f41759b9424bbdadb2363

✔️ tox-linters SUCCESS in 6m 03s
✔️ wazo-tox-py39 SUCCESS in 6m 26s
✔️ wazo-tox-integration-py39 SUCCESS in 4m 22s
✔️ debian-packaging-bullseye SUCCESS in 1m 49s

https://typing.readthedocs.io/en/latest/guides/libraries.html#marking-a-package-as-providing-type-information
a sentinel file must be present and distributed in package to signal to type checkers that the library provides type information that can be used; otherwise imports from this library are considered untyped.
Why: replaced dict type on parameter with MutableMapping
be forgiving in what you accept, strict in what you provide
existing usages of this function rely on passing e.g. ChainMap and should also work
Copy link
Contributor

Build succeeded.
https://zuul.wazo.community/zuul/t/local/buildset/bb4cea6d27ae48999cd000186100da6f

✔️ tox-linters SUCCESS in 6m 11s
✔️ wazo-tox-py39 SUCCESS in 6m 37s
✔️ wazo-tox-integration-py39 SUCCESS in 4m 12s
✔️ debian-packaging-bullseye SUCCESS in 1m 51s

@DrPyser DrPyser removed the mergeit label Oct 25, 2024
@DrPyser DrPyser marked this pull request as draft October 25, 2024 20:13
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.

1 participant