Hacker News new | ask | show | jobs
by bombolo 1290 days ago
It's not unheard of to have unions and a couple of if isinstance.

In fact it's why in python they even have the | operator between types nowadays.