Skip to content

Replace deprecated typing.List and friends - #16527

Merged
JelleZijlstra merged 10 commits into
python:mainfrom
jonathandung:patch-6
Oct 16, 2026
Merged

JelleZijlstra merged 10 commits into
python:mainfrom
jonathandung:patch-6

Conversation

@jonathandung

@jonathandung jonathandung commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Since Python 3.10 is the lowest supported Python version, this pull request replaces some of the instances of typing.List, typing.Tuple and typing.Union I found across the repository with list, tuple and | respectively. This removal mainly applies to tests.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@jonathandung
jonathandung marked this pull request as draft October 14, 2026 03:27
@jonathandung
jonathandung marked this pull request as ready for review October 14, 2026 14:34
@github-actions

This comment has been minimized.

Comment thread stdlib/@tests/test_cases/check_dataclasses.py Outdated
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra
JelleZijlstra merged commit 0e69087 into python:main Oct 16, 2026
91 checks passed
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.

3 participants