Skip to content

Commit

Permalink
wip: added deadcode example
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Sep 27, 2022
1 parent 194bb60 commit cfcfc75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/samples/enum_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class A:
def __cmp__(self, other):
if type(other) is self.__class__:
if self is other:
return 0
return -1
return NotImplemented
raise TypeError("unorderable types: %s() and %s()" % (self.__class__.__name__, other.__class__.__name__))

0 comments on commit cfcfc75

Please sign in to comment.