I have a function like this.
def foo(t: str or int): print(type(t)) if __name__ == \'__main__\': foo(2)