New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add supporting for async callable object #5506
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5506 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 540 540
Lines 13969 13967 -2
=========================================
- Hits 13969 13967 -2 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit 3d0072e at: https://634d4461e3a2ec1d01feb169--fastapi.netlify.app |
What are the next steps? |
def is_coroutine_function(obj: Any) -> bool: | ||
while isinstance(obj, functools.partial): | ||
obj = obj.func | ||
|
||
return asyncio.iscoroutinefunction(obj) or ( | ||
callable(obj) and asyncio.iscoroutinefunction(obj.__call__) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, ignore it.
The next step is to wait for Sebastián to review it. 🙏 |
... |
Is the project dead? |
Nop. |
I'll review tomorrow. |
def is_coroutine_function(obj: Any) -> bool: | ||
while isinstance(obj, functools.partial): | ||
obj = obj.func | ||
|
||
return asyncio.iscoroutinefunction(obj) or ( | ||
callable(obj) and asyncio.iscoroutinefunction(obj.__call__) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, ignore it.
No description provided.