def real_type(typ):
    'Escape the type from Union and Optional. /!\\ Hack /!\\ '
    if (typ.__class__ in [Union.__class__, Optional.__class__]):
        return typ.__args__[0]
    return typ
Escape the type from Union and Optional. /!\ Hack /!\
def real_type(typ):
    'Escape the type from Union and Optional. /!\\ Hack /!\\ '
    if (typ.__class__ in [Union.__class__, Optional.__class__]):
        return typ.__args__[0]
    return typ