Searched refs:isawaitable (Results 1 – 17 of 17) sorted by relevance
77 assert inspect.isawaitable(ret)85 if inspect.isawaitable(ret):
52 return iscoroutinefunction(obj) or inspect.isawaitable(obj)
67 self.assertTrue(inspect.isawaitable(m))73 self.assertTrue(inspect.isawaitable(m))129 self.assertTrue(inspect.isawaitable(m))164 self.assertTrue(inspect.isawaitable(m))242 self.assertTrue(inspect.isawaitable(awaitable))289 self.assertTrue(inspect.isawaitable(async_mock()))303 self.assertTrue(inspect.isawaitable(async_mock()))316 self.assertTrue(inspect.isawaitable(m))323 self.assertTrue(inspect.isawaitable(m))346 self.assertFalse(inspect.isawaitable(mock_method))
173 if inspect.isawaitable(value):
176 if inspect.isawaitable(value):
204 Use :func:`inspect.isawaitable` to detect them.222 Use :func:`inspect.isawaitable` to detect them.
48 awaitable (:func:`inspect.isawaitable` is used for the test.)
340 .. function:: isawaitable(object)353 assert not isawaitable(gen())354 assert isawaitable(gen_coro())
867 >>> inspect.isawaitable(mock()) # doctest: +SKIP
676 elif inspect.isawaitable(coro_or_future):
214 self.assertFalse(inspect.isawaitable(gen()))219 self.assertTrue(inspect.isawaitable(coro))220 self.assertTrue(inspect.isawaitable(gen_coro))225 self.assertTrue(inspect.isawaitable(Future()))226 self.assertFalse(inspect.isawaitable(Future))231 self.assertFalse(inspect.isawaitable(not_fut))
361 self.assertTrue(inspect.isawaitable(g.aclose()))
328 …return inspect.isawaitable(handler) or inspect.iscoroutinefunction(handler) or inspect.isasyncgenf…
230 def isawaitable(object): function
1315 :func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`,
17779 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin21789 - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin23543 coroutines--use inspect.isawaitable instead.