from functools import total_ordering


@total_ordering
class Infinity:

    def __eq__(self, other):
        return type(other) == Infinity

def __lt__(self, other):
    return False
How do I sort a list with "Nones last"