Lines Matching refs:cls
99 def __subclasshook__(cls, C):
100 if cls is Hashable:
114 def __subclasshook__(cls, C):
115 if cls is Awaitable:
157 def __subclasshook__(cls, C):
158 if cls is Coroutine:
175 def __subclasshook__(cls, C):
176 if cls is AsyncIterable:
196 def __subclasshook__(cls, C):
197 if cls is AsyncIterator:
243 def __subclasshook__(cls, C):
244 if cls is AsyncGenerator:
263 def __subclasshook__(cls, C):
264 if cls is Iterable:
284 def __subclasshook__(cls, C):
285 if cls is Iterator:
316 def __subclasshook__(cls, C):
317 if cls is Reversible:
363 def __subclasshook__(cls, C):
364 if cls is Generator:
382 def __subclasshook__(cls, C):
383 if cls is Sized:
397 def __subclasshook__(cls, C):
398 if cls is Container:
410 def __subclasshook__(cls, C):
411 if cls is Collection:
428 def __new__(cls, origin, args):
438 return super().__new__(cls, origin, args)
517 def __subclasshook__(cls, C):
518 if cls is Callable:
577 def _from_iterable(cls, it):
583 return cls(it)
829 def _from_iterable(cls, it):
847 def _from_iterable(cls, it):