Comments (3)
Hey @jmahlik! I can confirm that we have something weird here when we try to use TypeAdapter to convert the model. I know that Pydantic has some limitations when working with __future__ annotations
but I'll need a time to see what is going on with our integration.
It would be ideal to import annotations so type defs are ignored at runtime. Additionally, when using boto stubs they really shouldn't be shipped at runtime since they can be pretty large.
I totally agree that you shouldn't ship boto stubs to production, they are more suitable for development environments. In the meantime, you can use quotes ("Iterable[int]"
) for forward references and avoid issues.
Thanks.
from powertools-lambda-python.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
from powertools-lambda-python.
Looking at this now.
from powertools-lambda-python.
Related Issues (20)
- Tech debt: add `from __future__ import annotations` in the Event Handler OpenAPI feature HOT 2
- Tech debt: add `from __future__ import annotations` in the Batch Processing feature HOT 2
- Tech debt: add `from __future__ import annotations` in the Event Handler feature HOT 2
- Tech debt: add `from __future__ import annotations` in the Parser models feature HOT 2
- Technical Debt: Enable TCH, UP and FA100 rules in the Ruff linter HOT 6
- Docs: Publish Upgrade Guide for V3 HOT 2
- [Support Powertools for AWS Lambda (Python)]: Pushpay HOT 1
- Bug: Revert changes that impacts v3 HOT 6
- Bug: get_field_info_and_type_annotation doesn't respect tuple return types HOT 8
- Docs: Minor typo for log_level example HOT 5
- Bug: APIGatewayRestResolver with enable_validation=True and custom Response class type hint fails HOT 4
- Feature request: [Bedrock Agent Event Handler] Add (prompt) session attributes and knowledgeBasesConfiguration to the response HOT 2
- Maintenance: update docs to use self-hosted mermaid.js script HOT 1
- Docs: Addition of docs inventory (`objects.inv`) HOT 4
- Bug: Pydantic deprecated methods are still used HOT 4
- Bug: S3 SQS Event Parsing for LifecycleExpiration:Delete is failed HOT 3
- Docs: Update maintainers table HOT 1
- Bug: response hook is not called when idempotent function returns `None`
- Feature request: Support for large SQS payloads in Event Data Source Classes
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 powertools-lambda-python.