fix: Enable provide with stateful callable and cleanup#4459
Merged
provinzkraut merged 4 commits intolitestar-org:mainfrom Jan 7, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4459 +/- ##
=======================================
Coverage 97.83% 97.83%
=======================================
Files 296 296
Lines 15303 15308 +5
Branches 1715 1716 +1
=======================================
+ Hits 14972 14977 +5
Misses 189 189
Partials 142 142 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
provinzkraut
reviewed
Nov 6, 2025
Contributor
Author
|
Hi @provinzkraut , thanks for your review, that was an obvious oversight on my end. I commited as per your suggestion and the PR should be ready to merge :) |
|
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/4459 |
Contributor
Author
|
Hey @provinzkraut , any chance we can move on with this PR? :) |
provinzkraut
approved these changes
Jan 7, 2026
Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de>
d0961d0 to
27a637f
Compare
provinzkraut
pushed a commit
that referenced
this pull request
Jan 25, 2026
* test: Add test cases for (stateful) generator dependencies * fix: Ensure callable generator class instances are marked correctly * chore: Resolve mypy and pyright failures * chore: Remove superfluous duplicate check Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> --------- Co-authored-by: Enrico Stauss <enrico.stauss@pace.de> Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de> (cherry picked from commit ce25bff)
This was referenced Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix the Provide class for callable class instances returning an (Async) Generator.
Closes #4457