Searched refs:Awaitable (Results 1 - 10 of 10) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_coroutines.py | 991 class Awaitable: class 996 return (await Awaitable()) 1004 class Awaitable: class 1009 return (await Awaitable()) 1014 class Awaitable: class 1020 return (await Awaitable()) 1025 class Awaitable: class 1028 async def foo(): return await Awaitable() 1031 TypeError, "object Awaitable can't be used in 'await' expression"): 1089 class Awaitable class 1103 class Awaitable: global() class [all...] |
H A D | test_collections.py | 21 from collections.abc import Awaitable, Coroutine namespace 805 self.validate_abstract_methods(Awaitable, '__await__') 809 self.assertNotIsInstance(x, Awaitable) 810 self.assertFalse(issubclass(type(x), Awaitable), repr(type(x))) 814 self.assertIsInstance(x, Awaitable) 815 self.assertTrue(issubclass(type(x), Awaitable)) 820 # of Awaitable. Use inspect.isawaitable to detect them. 821 self.assertNotIsInstance(c, Awaitable) 824 self.assertIsInstance(c, Awaitable) 829 self.assertTrue(isinstance(CoroLike(), Awaitable)) [all...] |
H A D | test_types.py | 1848 class Awaitable: class 1851 aw = Awaitable() 1938 self.assertIsInstance(wrapper, collections.abc.Awaitable)
|
H A D | test_genericalias.py | 101 Awaitable, Coroutine,
|
H A D | test_typing.py | 5071 class AwaitableWrapper(typing.Awaitable[T_a]): 5641 "async def foo() -> typing.Awaitable[int]:\n" 5646 self.assertIsInstance(g, typing.Awaitable) 5647 self.assertNotIsInstance(foo, typing.Awaitable) 6086 self.assertEqual(typing.Sized | typing.Awaitable, Union[typing.Sized, typing.Awaitable]) 7947 typing.Awaitable: 'Awaitable', 7986 typing.Awaitable[Any]: 'Awaitable', [all...] |
/third_party/jinja2/ |
H A D | async_utils.py | 59 async def auto_await(value: t.Union[t.Awaitable["V"], "V"]) -> "V": 65 return await t.cast("t.Awaitable[V]", value)
|
/third_party/python/Lib/asyncio/ |
H A D | staggered.py | 15 coro_fns: typing.Iterable[typing.Callable[[], typing.Awaitable]],
|
/third_party/python/Lib/ |
H A D | _collections_abc.py | 18 __all__ = ["Awaitable", "Coroutine", 105 class Awaitable(metaclass=ABCMeta): class 115 if cls is Awaitable: 122 class Coroutine(Awaitable):
|
H A D | typing.py | 81 'Awaitable', 1965 'Callable', 'Awaitable', 'Iterable', 'Iterator', 'AsyncIterable', 2674 Awaitable = _alias(collections.abc.Awaitable, 1) variable
|
H A D | inspect.py | 454 isinstance(object, collections.abc.Awaitable))
|
Completed in 30 milliseconds