Lines Matching refs:_GenericAlias
130 if (isinstance(arg, _GenericAlias) and
172 if isinstance(t, _GenericAlias) and not t._special:
181 if not isinstance(tp, _GenericAlias):
216 if isinstance(p, _GenericAlias) and p.__origin__ is Union:
261 if isinstance(t, _GenericAlias):
341 return _GenericAlias(self, (item,))
352 return _GenericAlias(self, parameters)
591 class _GenericAlias(_Final, _root=True): class
632 return _GenericAlias(self.__origin__, params, name=self._name, inst=self._inst)
653 if not isinstance(other, _GenericAlias):
683 if not any(isinstance(b, _GenericAlias) or issubclass(b, Generic)
690 if isinstance(b, _GenericAlias) and b is not self:
712 if not isinstance(cls, _GenericAlias):
737 class _VariadicGenericAlias(_GenericAlias, _root=True):
839 return _GenericAlias(cls, params)
859 if (isinstance(base, _GenericAlias) and
1191 return _GenericAlias(origin, params, special=True, inst=inst)