- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isasyncgenfunction (0.24 sec)
-
fastapi/dependencies/models.py
@cached_property def is_async_gen_callable(self) -> bool: if self.call is None: return False # pragma: no cover if inspect.isasyncgenfunction( _impartial(self.call) ) or inspect.isasyncgenfunction(_unwrapped_call(self.call)): return True if inspect.isclass(_unwrapped_call(self.call)): return FalseRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/test_dependency_wrapped.py
async def gen_wrapper(*args, **kwargs): async for item in iterate_in_threadpool(func(*args, **kwargs)): yield item return gen_wrapper elif inspect.isasyncgenfunction(func): @wraps(func) async def async_gen_wrapper(*args, **kwargs): async for item in func(*args, **kwargs): yield item return async_gen_wrapper
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 11.2K bytes - Viewed (0)