-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Using builtin list as argument to map #10298
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Mypy emits a spurious error when using the python builtin
list
as the first argument to the python builtinmap
To Reproduce
Expected Behavior
I would expect no error. The builtin in
list
should satisfy the expected typeCallable[[str], List[_T]]
.(Write what you thought would happen.)
Actual Behavior
running mypy on this yields
error: Argument 1 to "map" has incompatible type "Type[List[Any]]"; expected "Callable[[str], List[_T]]"
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: