We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__hash__ = None
In mypy 0.550 with --strict-optional, defining an unhashable class like so:
--strict-optional
class Foo: __hash__ = None
gives
hash.py:2: error: Incompatible types in assignment (expression has type "None", base class "object" defined the type as "Callable[[object], int]")