failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · fastapi/fastapi
✨ Allow using dependables with `functools.partial()` Discussion: https://github.com/tiangolo/fastapi/discussions/9744 Using `functools.partial()` with dependables feels like a very obvious idiom. `partial()` already works for dependables that are plain function, but it doesn't work consistently, partial of async and callable classes didn't work consistently. This PR makes partial() work consistently in all combinations. test_dependency_class.py have been renamed to test_dependency_types.py to reflect its bigger scope now. There's quite a bit of repetition in the tests, part of me wants to just refactor those; but another part of me also wants to keep the tests simple.
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||