Skip to content

Conversation

@enrico-stauss
Copy link

Description

Fix the Provide class for callable class instances returning an (Async) Generator.

Closes #4457

@enrico-stauss enrico-stauss requested review from a team as code owners November 5, 2025 09:04
@enrico-stauss enrico-stauss changed the title Fix/provide with callable generator fix: Enable provide with stateful callable and cleanup Nov 5, 2025
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.83%. Comparing base (b4fad37) to head (c19e531).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4459   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files         296      296           
  Lines       15295    15300    +5     
  Branches     1713     1714    +1     
=======================================
+ Hits        14964    14969    +5     
  Misses        189      189           
  Partials      142      142           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de>
@enrico-stauss
Copy link
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 :)

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/4459

@enrico-stauss
Copy link
Author

Hey @provinzkraut , any chance we can move on with this PR? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Provide fails to detect generator methods on callable instances

2 participants