def _allSubclasses(cls):
return cls.__subclasses__() + [<EOL>g for s in cls.__subclasses__() for g in _allSubclasses(s)<EOL>]<EOL>
Get all subclasses
:param cls: The class to get subclasses from
:return: list with all subclasses