Skip to content

chore: remove remaining future annotations#2799

Merged
henryiii merged 1 commit intopypa:mainfrom
henryiii:henryiii/chore/future
Mar 25, 2026
Merged

chore: remove remaining future annotations#2799
henryiii merged 1 commit intopypa:mainfrom
henryiii:henryiii/chore/future

Conversation

@henryiii
Copy link
Copy Markdown
Contributor

We still have some future annotations left after we moved to 3.11+. Removing them.

@freakboy3742
Copy link
Copy Markdown
Contributor

This clearly works - it passes tests, and evidently it's only the iOS code that is using the future import... but I'm thoroughly confused...

I know the original PEP 649 definition called for Python 3.10 as the EOL date for from __future__ import annotations, but my understanding was that deadline was extended to 3.13 by PEP 749. Have I misunderstood the lay of the land here?

@henryiii
Copy link
Copy Markdown
Contributor Author

It's not needed because the syntax we are using is valid runtime Python now, has been since 3.10. It does affect forward references, but #2798 cleans those up.

Copy link
Copy Markdown
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@henryiii henryiii merged commit a257a3f into pypa:main Mar 25, 2026
45 checks passed
@henryiii henryiii deleted the henryiii/chore/future branch March 25, 2026 03:52
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