]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 May 2025 15:40:43 +0000 (17:40 +0200)
committerGitHub <noreply@github.com>
Mon, 26 May 2025 15:40:43 +0000 (15:40 +0000)
commit9ddc7c548d45b73c84131e6d75b03c26a3e8b6e8
treeccd5d1ba9a21897e5abfc6dac9803206f03c393b
parent2a089244f0de2211c7451a059da4ed7ec3ec892c
[3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731)

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 by PEP-749, not PEP-649.
(cherry picked from commit 7291eaba8b20b19e7971d43d88286d5820e5eb56)

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>
Doc/reference/datamodel.rst
Doc/whatsnew/3.14.rst