Skip to content

fix: update typing_extensions dependency for Python < 3.15#3881

Merged
mattijn merged 1 commit intovega:mainfrom
daizutabi:fix-pyproject-dependency
Oct 9, 2025
Merged

fix: update typing_extensions dependency for Python < 3.15#3881
mattijn merged 1 commit intovega:mainfrom
daizutabi:fix-pyproject-dependency

Conversation

@daizutabi
Copy link
Copy Markdown
Contributor

This PR fixes #3879.

Currently, Altair fails to install on Python 3.14 because typing_extensions is not included as a dependency for this version.

The environment marker in pyproject.toml is set to python_version<"3.14", which incorrectly excludes Python 3.14.

This change updates the marker to python_version<"3.15", ensuring typing_extensions is installed for Python 3.14. This is necessary because the TypedDict features that altair depends on are only available in the standard library from Python 3.15 onwards.

This complements the fix in PR #3877, which addressed the conditional imports in the source code but not the packaging dependency.

@mattijn mattijn enabled auto-merge (squash) October 9, 2025 04:08
@mattijn
Copy link
Copy Markdown
Contributor

mattijn commented Oct 9, 2025

Thanks for the PR @daizutabi! Much appreciated👍

@mattijn mattijn merged commit 9cb38d4 into vega:main Oct 9, 2025
13 checks passed
@daizutabi daizutabi deleted the fix-pyproject-dependency branch October 9, 2025 04:51
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.

Cannot import altair Chart in python 3.14

2 participants