Closed
Description
Typechecking Hashable
seems broken.
from typing import Hashable
def f(x: Hashable):
pass
f(0)
f('x')
$ mypy mypy.py
mypy.py:8: error: Argument 1 to "f" has incompatible type "int"; expected "Hashable"
mypy.py:9: error: Argument 1 to "f" has incompatible type "str"; expected "Hashable"
$ mypy -V
mypy 0.4.3-dev
Metadata
Metadata
Assignees
Labels
No labels