I have a function in python that can either return a bool or a list. Is there a way to specify the return types using type hints?
bool
list
For example, is this the correct way to do it?
def foo(id) -> list or bool: ...
← Назад к списку