Skip to content

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

@Yicong-Huang

Description

@Yicong-Huang

Task Summary

amber/requirements.txt lists two PyPI backport packages that are obsolete for the Python versions this repo supports (3.10–3.13):

  • typing==3.7.4.3 (line 31) — backport of the typing stdlib module for Python <3.5. Has been part of the standard library since Python 3.5.
  • dataclasses==0.6 (line 36) — backport of the dataclasses stdlib module for Python <3.7. Has been part of the standard library since Python 3.7.

Installing these on supported versions is at best wasted install time. At worst, the PyPI typing package can shadow the stdlib version and cause subtle import/typing bugs because it's pinned to a 3.7-era surface.

Side effect: on Python 3.13, typing==3.7.4.3 has no prebuilt wheel and is built from source on every CI run (visible in #4519's investigation).

Priority

P3 – Low

Task Type

Refactor / Cleanup

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions