We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dict
from typing import Generic, TypeVar, Mapping T = TypeVar("T") T2 = TypeVar("T2") class A(dict[T, T2]): ... def foo(**i: float) -> None: ... a: A[str, str] d = {"a": "b"} foo(**a) # no error foo(**d) # error: Argument 1 to "foo" has incompatible type "**Dict[str, str]"; expected "float"
https://mypy-play.net/?mypy=latest&python=3.10&gist=1cbdc48546f3a1bc61476936c3dc9af7
Might be related to #11138
The text was updated successfully, but these errors were encountered:
I think I might know what is the case here. PR is on its way.
Sorry, something went wrong.
*CustomType
**CustomType
Successfully merging a pull request may close this issue.
😳
https://mypy-play.net/?mypy=latest&python=3.10&gist=1cbdc48546f3a1bc61476936c3dc9af7
Might be related to #11138
The text was updated successfully, but these errors were encountered: