-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Enhancement: Support generic types in DTOs #2500
Labels
Comments
guacs
added
Bug 🐛
This is something that is not working as expected
Triage Required 🏥
This requires triage
labels
Oct 23, 2023
@peterschutt You started working on this, but closed the PR again. Is this blocked by something? |
No, just ran into a dead-end with the approach I was taking and have been sidetracked since. |
peterschutt
added a commit
that referenced
this issue
Nov 28, 2023
This PR is an attempt at handling DTOs that are narrowed with a `_GenericAlias` of a type supported by the DTO factory type. Closes #2500
5 tasks
peterschutt
added a commit
that referenced
this issue
Nov 28, 2023
This PR is an attempt at handling DTOs that are narrowed with a `_GenericAlias` of a type supported by the DTO factory type. Closes #2500
peterschutt
added a commit
that referenced
this issue
Nov 28, 2023
This PR is an attempt at handling DTOs that are narrowed with a `_GenericAlias` of a type supported by the DTO factory type. Closes #2500
Encountered this on python 3.12 on Windows, as well |
provinzkraut
added
Enhancement
This is a new feature or request
and removed
Bug 🐛
This is something that is not working as expected
labels
Feb 14, 2024
provinzkraut
changed the title
Bug: DTOs cannot handle generic types
Enhancement: Support generic types in DTOs
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
DTOs does not seem to support generic types.
URL to code causing the issue
No response
MCVE
Steps to reproduce
Run `litestar run`.
Screenshots
No response
Logs
Litestar Version
main
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 Litestar dashboard
The text was updated successfully, but these errors were encountered: