Lines Matching refs:getattr
269 for x in getattr(t, '__parameters__', ()):
290 subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
873 globalns = getattr(
916 getattr(x, '__typing_is_unpacked_typevartuple__', False))
1030 (isinstance(arg, GenericAlias) and getattr(arg, '__unpacked__', False))):
1092 subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
1287 return getattr(self.__origin__, attr)
1423 prepare = getattr(param, '__typing_prepare_subst__', None)
1442 substfunc = getattr(old_arg, '__typing_subst__', None)
1446 subparams = getattr(old_arg, '__parameters__', ())
1827 prepare = getattr(param, '__typing_prepare_subst__', None)
1906 annotations = getattr(base, '__annotations__', {})
1915 return all(callable(getattr(cls, attr, None)) for attr in _get_protocol_attrs(cls))
1979 getattr(cls, '_is_protocol', False) and
1980 not getattr(cls, '_is_runtime_protocol', False) and
1986 if ((not getattr(cls, '_is_protocol', False) or
1993 (not callable(getattr(cls, attr, None)) or
1994 getattr(instance, attr) is not None)
2048 if not getattr(cls, '_is_runtime_protocol', False):
2072 annotations = getattr(base, '__annotations__', {})
2309 if getattr(obj, '__no_type_check__', None):
2316 base_globals = getattr(sys.modules.get(base.__module__, None), '__dict__', {})
2348 globalns = getattr(nsobj, '__globals__', {})
2353 hints = getattr(obj, '__annotations__', None)
2508 obj = getattr(arg, key)
2512 or getattr(obj, '__module__', None) != arg.__module__
2591 f = getattr(func, "__func__", func)
2603 f = getattr(func, "__func__", func)