How to specify multiple return types using type-hints

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. For example, Is this the correct way to do it? def foo(id) -> ...