Skip to content

Commit

Permalink
Update build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored Aug 22, 2024
1 parent bd13af5 commit 0ad15f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast_depends/core/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ad15f1

Please sign in to comment.