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
by strict annotation check by mypy,
arg_parser_opts: dict = {"add_help": False, "allow_abbrev": False}
homebrew-file/src/brew_file/main.py Line 23 in 789ed64 arg_parser_opts: dict = {"add_help": False, "allow_abbrev": False}
homebrew-file/src/brew_file/main.py
Line 23 in 789ed64
must have type annotation in the dict, like dict[str, bool].
dict[str, bool]
But this leads to an error at func(**arg_parser_opts) like
func(**arg_parser_opts)
Argument 2 to "ArgumentParser" has incompatible type "**Dict[str, bool]"; expected "Optional[str]" [arg-type]
dict[str, Any] resolves this.
dict[str, Any]
This problem is currently being discussed at: python/mypy#5382.
The text was updated successfully, but these errors were encountered:
fixed at mypy 1.7 but need python 3.10 or later to use Unpack (and NotRequired)
Sorry, something went wrong.
No branches or pull requests
by strict annotation check by mypy,
must have type annotation in the dict, like
dict[str, bool]
.But this leads to an error at
func(**arg_parser_opts)
likedict[str, Any]
resolves this.This problem is currently being discussed at: python/mypy#5382.
The text was updated successfully, but these errors were encountered: