def get_slots(cls: Type[Any]) -> Iterator[str]:
    for mro in reversed(cls.__mro__):
        try:
            (yield from mro.__slots__)
        except AttributeError:
            continue
def get_slots(cls: Type[Any]) -> Iterator[str]:
    for mro in reversed(cls.__mro__):
        try:
            (yield from mro.__slots__)
        except AttributeError:
            continue