unions

Do union types actually exist in python?

Do union types actually exist in python? Question: Since python is dynamically typed, of course we can do something like this: def f(x): return 2 if x else “s” But is this the way python was actually intended to be used? Or in other words, do union types exist in the sense they do in …

Total answers: 6