You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using any of the route handler decorators get, post, etc now causes the warning "Semantic HTTP route handler classes are deprecated and will be replaced by functional decorators in Litestar 3.0.
I was told here that this is not intended behavior and I should create this issue.
# Run this file with pytestfromlitestarimportLitestar, get@get()asyncdefroot_handler() ->None: ...
app=Litestar(route_handlers=[root_handler])
deftest_nothing():
...
Steps to reproduce
1. Install litestar 2.9.0
2. Put the MCVE in a file
3. Run pytest on that file
4. Deprecation warnings appear in the output.
Description
Using any of the route handler decorators get, post, etc now causes the warning "Semantic HTTP route handler classes are deprecated and will be replaced by functional decorators in Litestar 3.0.
I was told here that this is not intended behavior and I should create this issue.
URL to code causing the issue
litestar/litestar/handlers/http_handlers/decorators.py
Line 49 in 84f51c8
MCVE
Steps to reproduce
Screenshots
""
Logs
No response
Litestar Version
2.9.0
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: