Skip to content

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.

@wazo-community-zuul
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
@DrPyser DrPyser force-pushed the typing-improvements branch from 1448f0c to 506906b Compare October 25, 2024 14:30
@wazo-community-zuul
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.

2 participants