You need to check with isinstance : def f1(*args, **kwargs) -> int | float: ... def f2(*args, **kwargs) -> int: ans = f1(.
確定! 回上一頁