]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-123242: Note that type.__annotations__ may not exist (GH-124557) (#124569)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Thu, 26 Sep 2024 23:57:50 +0000 (16:57 -0700)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 23:57:50 +0000 (16:57 -0700)
commitb27e2273be6fc33e1bb3425d95b5b5f53829030d
treefbb4a4d5e1428be4911725a6536b1e9567e3242e
parenta0799223ae39483f41b292e1f39826c1e73d5064
[3.13] gh-123242: Note that type.__annotations__ may not exist (GH-124557) (#124569)

Closes GH-123242. The real criterion is that the attribute does not
exist on heap types, but I don't think we should discuss heap vs.
static types in the language reference.
(cherry picked from commit 99b23c64de301c9e77add6b0d8e60118ef807840)
Doc/reference/datamodel.rst