]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119180: Updates to PEP 649/749 docs (#134640)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Mon, 26 May 2025 15:35:04 +0000 (08:35 -0700)
committerGitHub <noreply@github.com>
Mon, 26 May 2025 15:35:04 +0000 (08:35 -0700)
commit7291eaba8b20b19e7971d43d88286d5820e5eb56
tree584e52f58749a8776451cc20c668e577e958fcdd
parent806107d7a2fa9baa76d4025f46fab2c8725963f4
gh-119180: Updates to PEP 649/749 docs (#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 by PEP-749, not PEP-649.

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/reference/datamodel.rst
Doc/whatsnew/3.14.rst