-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[airbyte-cdk] Python 3.11 dataclass compatibility #38846
Conversation
Use dataclass fields with default_factory for 3.11 compatibility. Reimplements #33798 on top of current master.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
airbyte-cdk/python/unit_tests/sources/declarative/parsers/testing_components.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ✅
Nice! Thanks, @natikgadzhi ! 👏 |
Heads up, if you're here because your connector of choice does not work on 3.11, it could be that it's using an outdated CDK. Here's a PR that maybe fixes Prestashop: #41656 |
What
Use dataclass fields with default_factory for 3.11 compatibility. Reimplements #33798 on top of current master.
How
Uses
field
withdefault_factory
instead of const default values.User Impact
None.
Can this PR be safely reverted and rolled back?
TODO