8000 [3.14] gh-134370: Added clarification on instance annotations (GH-134387) by miss-islington · Pull Request #134509 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.14] gh-134370: Added clarification on instance annotations (GH-134387) #134509

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented May 22, 2025

Instances of classes cannot have annotations,
however sometimes they will erroneously have the
annotations attribute
(cherry picked from commit bd4046f)

Co-authored-by: Alex Kautz alex@takemobi.com


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

…H-134387)

Instances of classes cannot have annotations,
however sometimes they will erroneously have the
__annotations__ attribute
(cherry picked from commit bd4046f)

Co-authored-by: Alex Kautz <alex@takemobi.com>
@JelleZijlstra JelleZijlstra enabled auto-merge (squash) May 22, 2025 13:47
@JelleZijlstra JelleZijlstra merged commit 7e73918 into python:3.14 May 22, 2025
37 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0