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
The test looks like this:
from typing import Mapping class MappingSubclass(Mapping[str, str]): pass def f(**kwargs: 'A') -> None: pass d = None # type: MappingSubclass f(**d) class A: pass
but line 5 should be something like:
f(**d) # E: Argument 1 to "f" has incompatible type "**MappingSubclass"; expected "A"
This is because the value type str does not match A. I feel like this is a bug somewhere in Mypy.
str
A
I have tried to find an issue about kwargs and super types, but could not find anything.
The text was updated successfully, but these errors were encountered:
6badb4a
Successfully merging a pull request may close this issue.
The test looks like this:
but line 5 should be something like:
This is because the value type
str
does not matchA
. I feel like this is a bug somewhere in Mypy.I have tried to find an issue about kwargs and super types, but could not find anything.
The text was updated successfully, but these errors were encountered: