def get_by_cidoc_class(code: Union[str, List[str]]) -> List[Entity]: return [Entity(row) for row in Db.get_by_cidoc_class(code)]
def get_by_cidoc_class( code: Union[str, list[str]], types: bool = False, aliases: bool = False) -> list[Entity]: return \ [Entity(row) for row in Db.get_by_cidoc_class(code, types, aliases)]