]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-123242: Note that type.__annotations__ may not exist (GH-124557) (#124562)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 25 Sep 2024 23:27:10 +0000 (16:27 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2024 23:27:10 +0000 (16:27 -0700)
commit7ce138fa9bc69fd4dba4634835fa945089de95eb
treec05e941768ac1732ce656ffbd27c5f61ef48e132
parentd2068c65a68961faaf27197d7e2eb76b32d01e56
[3.12] gh-123242: Note that type.__annotations__ may not exist (GH-124557) (#124562)

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