def VisitUnionType(self, u):
    type_params = [t for t in u.type_list if isinstance(t, pytd.TypeParameter)]
    for t in type_params:
        if self.IsFunctionTypeParameter(t):
            self._AppendNew(self.type_param_union[t.name], type_params)
    return u
def VisitUnionType(self, u):
    type_params = [t for t in u.type_list if isinstance(t, pytd.TypeParameter)]
    for t in type_params:
        if self.IsFunctionTypeParameter(t):
            self._AppendNew(self.type_param_union[t.name], type_params)
    return u