Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-119180: Updates to PEP 649/749 docs#134640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 3 commits intopython:mainfromJelleZijlstra:649-749-docs
May 26, 2025

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstraJelleZijlstra commentedMay 24, 2025
edited by github-actionsbot
Loading

  • Mention (again) thattype.__annotations__ is unsafe. It is now safe
    when using only classes defined under PEP 649 semantics, but not with
    classes defined usingfrom __future__ import annotations.
  • Mention that annotations on instances no longer work. There was already
    an issue about this.
  • Mention the general changes in the "Porting to Python 3.14" section.
  • annotationlib was proposed byPEP-749, notPEP-649.

📚 Documentation preview 📚:https://cpython-previews--134640.org.readthedocs.build/

- Mention (again) that `type.__annotations__` is unsafe. It is now safe  when using only classes defined under PEP 649 semantics, but not with  classes defined using `from __future__ import annotations`.- Mention that annotations on instances no longer work. There was already  an issue about this.- Mention the general changes in the "Porting to Python 3.14" section.- `annotationlib` was proposed by PEP-749, not PEP-649.
Copy link
Member

@emmatypingemmatyping left a comment

Choose a reason for hiding this comment

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

One minor suggestion which you can take or leave, but otherwise looks good.

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Copy link
Contributor

@willingcwillingc left a comment

Choose a reason for hiding this comment

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

Thanks@JelleZijlstra. I made a small suggestion for readability.

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
@JelleZijlstraJelleZijlstra added the needs backport to 3.14bugs and security fixes labelMay 26, 2025
@JelleZijlstraJelleZijlstra merged commit7291eab intopython:mainMay 26, 2025
26 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsMay 26, 2025
@miss-islington-app
Copy link

Thanks@JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@JelleZijlstraJelleZijlstra deleted the 649-749-docs branchMay 26, 2025 15:35
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 26, 2025
- Mention (again) that `type.__annotations__` is unsafe. It is now safe  when using only classes defined under PEP 649 semantics, but not with  classes defined using `from __future__ import annotations`.- Mention that annotations on instances no longer work. There was already  an issue about this.- Mention the general changes in the "Porting to Python 3.14" section.- `annotationlib` was proposed by PEP-749, not PEP-649.(cherry picked from commit7291eab)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>Co-authored-by: Emma Smith <emma@emmatyping.dev>Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
@bedevere-app
Copy link

GH-134731 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 26, 2025
JelleZijlstra added a commit that referenced this pull requestMay 26, 2025
gh-119180: Updates to PEP 649/749 docs (GH-134640)- Mention (again) that `type.__annotations__` is unsafe. It is now safe  when using only classes defined under PEP 649 semantics, but not with  classes defined using `from __future__ import annotations`.- Mention that annotations on instances no longer work. There was already  an issue about this.- Mention the general changes in the "Porting to Python 3.14" section.- `annotationlib` was proposed byPEP-749, notPEP-649.(cherry picked from commit7291eab)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>Co-authored-by: Emma Smith <emma@emmatyping.dev>Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@willingcwillingcwillingc approved these changes

@emmatypingemmatypingemmatyping approved these changes

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
Status: Done
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@JelleZijlstra@willingc@emmatyping

[8]ページ先頭

©2009-2025 Movatter.jp