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
$ cat module.py from types import ModuleType import os def takes_module(mod: ModuleType) -> None: pass takes_module(os) $ python3.6 -m mypy module.py module.py:6: error: Argument 1 to "takes_module" has incompatible type "module"; expected "ModuleType"
mypy may need to learn that types.ModuleType is the same as module. This came up in #2910.
types.ModuleType
module
The text was updated successfully, but these errors were encountered:
I think it might be a duplicate of #1498
Sorry, something went wrong.
Yes, this is a duplicate.
No branches or pull requests
mypy may need to learn that
types.ModuleType
is the same asmodule
. This came up in #2910.The text was updated successfully, but these errors were encountered: