Comments (7)
You are more than welcome to make a PR, cheers.
To make it easier to review I'd first suggest creating a minimal example (I'm talking about something we can copy and paste and run without any extra work) that demonstrates the issue against main
. Then we have some context when reviewing the PR.
from litestar.
We have
litestar/litestar/utils/typing.py
Lines 233 to 262 in ef9dbb7
from litestar.
We have
litestar/litestar/utils/typing.py
Lines 233 to 262 in ef9dbb7
I see, but fn_type_hints
no longer contains the expanded type information after line 214. In the previous example, fn_type_hint = {'data': ~T, 'return': ~T}
litestar/litestar/utils/signature.py
Line 214 in ef9dbb7
from litestar.
Not sure what you mean. I'm just pointing out that we have a utility that does type get_type_hints()
with type var expansion.
from litestar.
Sorry, I wasn't clear. Correct me if I am wrong, but I don't think that utility method gets called in the ParsedSignature.from_fn
call stack.
from litestar.
Obviously it was me who was unclear. I wasn't saying it did - just pointing out we have the utility you mentioned which maybe we can use. LMK how it goes.
from litestar.
Ah thank you. Should I make a PR after adding it in? Sorry I am quite new to contributing to open source project.
from litestar.
Related Issues (20)
- Docs: Update security usage examples to use SQLAlchemy v2 `mapped_column`
- Check: MiniJinja v2 breaking changes
- Docs: Add common recipes/FAQ section HOT 1
- Bug: Litestar instance or factory not found HOT 1
- Enhancement: allow finer tuning `LoggingConfig` for exception logging
- Bug: SQLAlchemy models with default=func.now() error with Unexpected default type HOT 3
- Bug: [OpenAPI] Upload file is not possible when defined as Optional HOT 2
- Bug: Using plugin results in DTO given to dto parameter not being used for return HOT 2
- CI: Fix devcontainer config HOT 1
- DTO backend does not transferring mappings with nested models HOT 9
- Bug: SerializationException when running modeling-and-features demo from docs HOT 3
- Bug: Can't convert sqlalchemy model to pydantic model which is inherited from BaseModel HOT 1
- Enhancement: Add Pydantic's error dictionary to ValidationException's extra dict
- Enhancement: make `SessionMiddleware` return custom types HOT 3
- Bug: OpenAPI docs fail to generate with certain validators and pydantic v1 HOT 3
- Bug: Multi-body response incompatible with LoggingMiddleware HOT 2
- Bug: test failures
- Bug: `return_dto` is silently ignored if return data type does not match DTO definition HOT 1
- Bug: Test error
- Enhancement: add `default_json_serializer` to `__all__` in `litestar.logging.config`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litestar.