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

Change use of Protocol from typing instead of typing_extension #1058

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

bloebp
Copy link
Member

@bloebp bloebp commented Nov 2, 2023

The graph module uses Protocols, which have been natively supported since Python 3.8 (the required minimum version for DoWhy). To support Protocols in earlier Python versions, an extension provided Protocol support. However, this extension can cause compatibility issues with newer versions of other packages. With this change, DoWhy now uses the Protocol implementation that has been available since Python 3.8.

The graph module uses Protocols, which is natively supported since Python 3.8 (the required minimum version for DoWhy). To support Protocols in earlier Python versions, an extension provided Protocol support. However, this extension can causes compatibility issues with newer versions of other packages.

DoWhy now uses the Protocol implementation that is available since Python 3.8.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
@bloebp bloebp requested a review from kbattocchi November 2, 2023 20:45
Copy link
Contributor

@kbattocchi kbattocchi left a comment

Choose a reason for hiding this comment

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

LGTM

@bloebp bloebp merged commit ef91e18 into main Nov 3, 2023
6 of 30 checks passed
@bloebp bloebp deleted the typing_protocol branch November 3, 2023 21:44
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.

2 participants