I would want to write:
class MyClass:
def __le__(self, other:MyClass):
...
def __ge__(self, other:MyClass):
...
...
Unfortunately, Python throws an error because MyClass isn't yet initialized. Is there another way to specify the type alias here?