Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions howto/annotations.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-15 09:12+0000\n"
"POT-Creation-Date: 2026-11-02 03:06+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n"
"Language: de\n"
Expand Down Expand Up @@ -376,13 +376,30 @@ msgid ""
"the class, you may observe unexpected behavior; see :pep:`749 <749#pep749-"
"metaclasses>` for some examples. You can avoid these quirks by "
"using :func:`annotationlib.get_annotations` on Python 3.14+ "
"or :func:`inspect.get_annotations` on Python 3.10+. On earlier versions of "
"Python, you can avoid these bugs by accessing the annotations from the "
"or :func:`inspect.get_annotations` on Python 3.10+."
msgstr ""

#: ../../howto/annotations.rst:252
msgid ""
"On Python 3.14 and later, annotations are evaluated lazily (see :pep:`649` "
"and :pep:`749`), and how the annotations dict is stored in the "
"class's :attr:`~type.__dict__` is a private implementation detail. Reading "
"``cls.__dict__.get('__annotations__', None)`` may therefore return ``None`` "
"even when the class has annotations. On these versions, always "
"use :func:`annotationlib.get_annotations` "
"(or :func:`inspect.get_annotations`) rather than "
"accessing :attr:`~type.__dict__` directly."
msgstr ""

#: ../../howto/annotations.rst:261
msgid ""
"Only on Python 3.9 and earlier, where neither function is available, can you "
"avoid these bugs by reading the annotations from the "
"class's :attr:`~type.__dict__` (for example, "
"``cls.__dict__.get('__annotations__', None)``)."
msgstr ""

#: ../../howto/annotations.rst:253
#: ../../howto/annotations.rst:265
msgid ""
"In some versions of Python, instances of classes may have an "
"``__annotations__`` attribute. However, this is not supported functionality. "
Expand Down
Loading