Skip to content

chore(amber): remove typing and dataclasses backport packages#4523

Merged
Yicong-Huang merged 3 commits into
apache:mainfrom
Yicong-Huang:chore/remove-typing-dataclasses-backports
Apr 26, 2026
Merged

chore(amber): remove typing and dataclasses backport packages#4523
Yicong-Huang merged 3 commits into
apache:mainfrom
Yicong-Huang:chore/remove-typing-dataclasses-backports

Conversation

@Yicong-Huang
Copy link
Copy Markdown
Contributor

@Yicong-Huang Yicong-Huang commented Apr 26, 2026

What changes were proposed in this PR?

Removes two PyPI backport packages from amber/requirements.txt:

  • typing==3.7.4.3 — backport of the typing stdlib module for Python <3.5. Has been part of the stdlib since 3.5.
  • dataclasses==0.6 — backport of the dataclasses stdlib module for Python <3.7. Has been part of the stdlib since 3.7.

This repo's CI matrix is Python 3.10–3.13, so both are obsolete. Installing them on supported versions is wasted CI time, and the PyPI typing package can shadow the stdlib version in subtle ways because its API is frozen at 3.7-era.

typing_extensions==4.14.1 (line 34, kept) is a different, still-maintained package that backports new typing features to older Pythons; it's correctly retained.

Any related issues, documentation, discussions?

Closes #4522. Surfaced during investigation in #4519/#4521.

How was this PR tested?

CI

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

`typing==3.7.4.3` is a backport of the `typing` stdlib module for
Python <3.5; `dataclasses==0.6` is a backport for Python <3.7. This
repo's CI matrix is 3.10–3.13, so both are obsolete. Installing them
is wasted CI time, and the PyPI `typing` package can shadow the
stdlib version in subtle ways because its API is frozen at 3.7-era.

Side benefit: on Python 3.13, `typing==3.7.4.3` has no prebuilt wheel
and is built from source on every CI run.

Closes apache#4522

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added engine dependencies Pull requests that update a dependency file labels Apr 26, 2026
@Yicong-Huang Yicong-Huang changed the title chore(amber): drop dead Python <3.5 / <3.7 backport deps chore(amber): remove typing and dataclasses backport packages Apr 26, 2026
@Yicong-Huang Yicong-Huang enabled auto-merge (squash) April 26, 2026 04:55
@Yicong-Huang Yicong-Huang self-assigned this Apr 26, 2026
@Yicong-Huang Yicong-Huang requested a review from bobbai00 April 26, 2026 05:01
Copy link
Copy Markdown
Contributor

@bobbai00 bobbai00 left a comment

Choose a reason for hiding this comment

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

LGTM

@Yicong-Huang Yicong-Huang merged commit 954f41b into apache:main Apr 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead Python <3.5 backports from amber/requirements.txt: typing and dataclasses

3 participants