I think you need exactly the list, as your example function returns a list, not an "array". Even if it's not the case, I don't get why you want to avoid using List[str], and at the same time you accepted an answer that proposed it. Could you clarify, please?
list[str]evidently does not work)List[str], and at the same time you accepted an answer that proposed it. Could you clarify, please?