blob: 30c618374f887719ea53f016606abe23512dd365 [file] [edit]
[case testDundersNotImplemented]
# This case is special because it tests the behavior of NotImplemented
# used in a typed function which return type is bool.
# This is a convention that can be overridden by the user.
class UsesNotImplemented:
def __eq__(self, b: object) -> bool:
return NotImplemented
assert UsesNotImplemented() != object()