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
[juke@jhebert:~/snip/python/config] 1 % cat config.py import configparser c = configparser.ConfigParser() c.read("file") c.get("foo", "bar") [juke@jhebert:~/snip/python/config] % mypy config.py config.py:4: error: Argument 2 to "get" of "Mapping" has incompatible type "str"; expected Dict[str, str]
The text was updated successfully, but these errors were encountered:
Thanks for the report! Do you feel comfortable submitting a Pull Request to fix the issue?
Sorry, something went wrong.
The problem is with incorrectly declaring to subtype MutableMapping[str, Dict[str, str]]. ConfigParser.get() is incompatible with it.
MutableMapping[str, Dict[str, str]]
ConfigParser.get()
59585bb
No branches or pull requests
The text was updated successfully, but these errors were encountered: