55#
66# Translators:
77# python-doc bot, 2025
8+ # digdugdog, 2026
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.14\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-03-01 14:19 +0000\n "
15+ "POT-Creation-Date : 2026-03-05 14:41 +0000\n "
1516"PO-Revision-Date : 2025-09-16 00:00+0000\n "
16- "Last-Translator : python-doc bot, 2025 \n "
17+ "Last-Translator : digdugdog, 2026 \n "
1718"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version : 1.0\n "
@@ -24,7 +25,7 @@ msgstr ""
2425
2526#: ../../howto/annotations.rst:5
2627msgid "Annotations Best Practices"
27- msgstr ""
28+ msgstr "アノテーションのベストプラクティス "
2829
2930#: ../../howto/annotations.rst:0
3031msgid "author"
@@ -45,6 +46,9 @@ msgid ""
4546"``__annotations__`` on Python objects, we encourage you to follow the "
4647"guidelines described below."
4748msgstr ""
49+ "このドキュメントは、アノテーションの辞書を扱う上でのベストプラクティスをまと"
50+ "めるものです。Python オブジェクトに付与された ``__annotations__`` を Python "
51+ "コードからアクセスする際には、以下のガイドラインに従うことを推奨します。"
4852
4953#: ../../howto/annotations.rst:16
5054msgid ""
@@ -54,6 +58,11 @@ msgid ""
5458"and older, other best practices for ``__annotations__`` that apply to any "
5559"Python version, and quirks of ``__annotations__``."
5660msgstr ""
61+ "本ドキュメントは次の4セクションで構成されています。Python 3.10 以降でオブ"
62+ "ジェクトのアノテーションにアクセスするときのベストプラクティス、Python 3.9 以"
63+ "下でオブジェクトのアノテーションにアクセスするときのベストプラクティス、"
64+ "Python バージョンに関わらない ``__annotations__`` に関するベストプラクティ"
65+ "ス、 ``__annotations__`` の注意点、です。"
5766
5867#: ../../howto/annotations.rst:26
5968msgid ""
@@ -62,10 +71,13 @@ msgid ""
6271"information on how to use \" type hints\" in your code, please see the :mod:"
6372"`typing` module."
6473msgstr ""
74+ "注意:本ドキュメントは、アノテーションの使い方ではなく、 ``__annotations__`` "
75+ "の使い方を扱っています。型ヒントをコードの中でどうやって使うかについては、 :"
76+ "mod:`typing` モジュールを参照してください。"
6577
6678#: ../../howto/annotations.rst:33
6779msgid "Accessing The Annotations Dict Of An Object In Python 3.10 And Newer"
68- msgstr ""
80+ msgstr "オブジェクトのアノテーション辞書へのアクセス (Python 3.10 以降) "
6981
7082#: ../../howto/annotations.rst:35
7183msgid ""
@@ -75,6 +87,11 @@ msgid ""
7587"object that supports annotations. This function can also \" un-stringize\" "
7688"stringized annotations for you."
7789msgstr ""
90+ "Python 3.10 で標準ライブラリに :func:`inspect.get_annotations` 関数が新たに追"
91+ "加されました。Python 3.10 から 3.13 までは、アノテーションに対応しているオブ"
92+ "ジェクトのアノテーション辞書にアクセスするには、この関数を使うのが一番良いで"
93+ "す。文字列で指定されたアノテーションも自動的に文字列でない値に解決してくれま"
94+ "す。"
7895
7996#: ../../howto/annotations.rst:42
8097msgid ""
@@ -83,6 +100,9 @@ msgid ""
83100"`annotationlib.get_annotations` function, which supersedes :func:`inspect."
84101"get_annotations`."
85102msgstr ""
103+ "Python 3.14 では、アノテーションを扱うためのモジュール :mod:`annotationlib` "
104+ "が追加されました。このモジュールに :func:`annotationlib.get_annotations` があ"
105+ "り、 :func:`inspect.get_annotations` を置き換えるものです。"
86106
87107#: ../../howto/annotations.rst:47
88108msgid ""
@@ -94,6 +114,12 @@ msgid ""
94114"of these three *specific* objects, you may simply use ``o.__annotations__`` "
95115"to get at the object's annotations dict."
96116msgstr ""
117+ "もし何らかの理由で自分の用途に :func:`inspect.get_annotations` が合わないとい"
118+ "う場合は、手動で ``__annotations__`` にアクセスすることもできます。これについ"
119+ "ても、推奨のアクセス方法が Python 3.10 で変わりました。3.10 で、 ``o."
120+ "__annotations__`` は関数、クラス、モジュールに対しては必ず使えることが保証さ"
121+ "れるようになりました。オブジェクトが確実にこの3つのいずれかである場合は、単"
122+ "に ``o.__annotations__`` を使えばアノテーション辞書を取得できます。"
97123
98124#: ../../howto/annotations.rst:57
99125msgid ""
0 commit comments