Skip to content
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

fix: #2368 - before_request handler modifies handler signature #2391

Merged
merged 4 commits into from
Sep 30, 2023

Conversation

provinzkraut
Copy link
Member

Fix #2368 by removing the modification of return type annotations based on the return type of the before_request handler.

This doesn't seem to break anything and I'm fairly certain not doing this is the correct behaviour (certainly less unexpected), still calling out @litestar-org/maintainers @litestar-org/members for some opinions.

Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
@provinzkraut provinzkraut enabled auto-merge (squash) September 30, 2023 17:23
@sonarcloud
Copy link

sonarcloud bot commented Sep 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@provinzkraut provinzkraut merged commit 2d7ad67 into main Sep 30, 2023
16 checks passed
@provinzkraut provinzkraut deleted the fix-2368 branch September 30, 2023 17:37
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: using Any return type on before_request handler throws an error on schema
3 participants