I am trying to evaluate the following statement using mypy:
a = [1,2,3]
b = map(float, a)
this returns the error
Argument 1 to "map" has incompatible type "Type[float]"; expected "Callable[[str], str]"
but at runtime this has no problem executing. What is the reason for this problem?