Skip to content
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

Force use of typeddict from typingexentions, pin poetry in tests, simple disable python 3.8 #2185

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

sh-rp
Copy link
Collaborator

@sh-rp sh-rp commented Jan 2, 2025

Description

See attached ticket for description of what was fixed.

@sh-rp sh-rp marked this pull request as ready for review January 2, 2025 12:39
Copy link

netlify bot commented Jan 2, 2025

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 84e78b9
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/677fa935e9fe910008ce73c1

@@ -45,6 +45,11 @@

from typing_extensions import is_typeddict as _is_typeddict

if sys.version_info >= (3, 12):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it is safe to always import from typing_extensions. I do that ie. for Annotated. should we change this?

@@ -6,6 +6,8 @@ banned-modules = datetime = use dlt.common.pendulum
decimal.Decimal = use dlt.common.Decimal
open = use dlt.common.open
pendulum = use dlt.common.pendulum
typing.TypedDict = use dlt.common.typing.TypedDict
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is cool!

pin poetry in tests to 1.8.5
@sh-rp sh-rp changed the title Use TypeDict from typing_extensions for python versions below 3.12 for pydantic compatibility Force use of typeddict from typingexentions, pin poetry in tests, simple disable python 3.8 Jan 9, 2025
Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rudolfix rudolfix merged commit c7c3370 into devel Jan 9, 2025
53 of 56 checks passed
@rudolfix rudolfix deleted the fix/2125-typed-dict-fix branch January 9, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypedDict should be imported from typing_extensions rather than typing in Python versions <=3.11
2 participants