blob: fe6142ff4440682198e6f8eb76ab987aba4068a6 [file] [log] [blame]
# pylint: disable=missing-docstring,expression-not-assigned,too-few-public-methods,pointless-statement, useless-object-inheritance
class Unhashable(object):
__hash__ = list.__hash__
{}[[1, 2, 3]] # [unhashable-dict-key]
{}[{}] # [unhashable-dict-key]
{}[Unhashable()] # [unhashable-dict-key]
{}[1:2] # [unhashable-dict-key]
{'foo': 'bar'}['foo']
{'foo': 'bar'}[42]