def get_type(arg_name: str) -> mypy.types.ProperType:
    with mypy.state.strict_optional_set(True):
        all_types = [(arg.variable.type or arg.type_annotation) for (arg, _) in all_args[arg_name]]
        return mypy.typeops.make_simplified_union([t for t in all_types if t])
def get_type(arg_name: str) -> mypy.types.ProperType:
    with mypy.state.strict_optional_set(True):
        all_types = [(arg.variable.type or arg.type_annotation) for (arg, _) in all_args[arg_name]]
        return mypy.typeops.make_simplified_union([t for t in all_types if t])