From 0ad15f158b5bdf3b990ae68bf914e7812cdc49a5 Mon Sep 17 00:00:00 2001 From: Pastukhov Nikita Date: Thu, 22 Aug 2024 14:40:51 +0300 Subject: [PATCH] Update build.py --- fast_depends/core/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast_depends/core/build.py b/fast_depends/core/build.py index 38ef61a..839dee6 100644 --- a/fast_depends/core/build.py +++ b/fast_depends/core/build.py @@ -55,7 +55,7 @@ def build_call_model( is_call_async = is_coroutine_callable(call) if is_sync is None: - is_sync = not is_call_async and not inspect.isasyncgenfunction(call) + is_sync = not is_call_async and not is_async_gen_callable(call) else: assert not ( is_sync and is_call_async