@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.13\n "
18
18
"Report-Msgid-Bugs-To : \n "
19
- "POT-Creation-Date : 2024-08-31 10:59 +0000\n "
19
+ "POT-Creation-Date : 2024-09-13 14:16 +0000\n "
20
20
"PO-Revision-Date : 2021-06-28 00:56+0000\n "
21
21
"
Last-Translator :
Takanori Suzuki <[email protected] >, 2024\n "
22
22
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -561,11 +561,17 @@ msgstr ":meth:`~object.__len__` メソッドを提供するクラスの ABC で
561
561
msgid "ABC for classes that provide the :meth:`~object.__call__` method."
562
562
msgstr ":meth:`~object.__call__` メソッドを提供するクラスの ABC です。"
563
563
564
- #: ../../library/collections.abc.rst:221
564
+ #: ../../library/collections.abc.rst:219
565
+ msgid ""
566
+ "See :ref:`annotating-callables` for details on how to use :class:`!Callable` "
567
+ "in type annotations."
568
+ msgstr ""
569
+
570
+ #: ../../library/collections.abc.rst:224
565
571
msgid "ABC for classes that provide the :meth:`~container.__iter__` method."
566
572
msgstr ":meth:`~container.__iter__` メソッドを提供するクラスの ABC です。"
567
573
568
- #: ../../library/collections.abc.rst:223
574
+ #: ../../library/collections.abc.rst:226
569
575
msgid ""
570
576
"Checking ``isinstance(obj, Iterable)`` detects classes that are registered "
571
577
"as :class:`Iterable` or that have an :meth:`~container.__iter__` method, but "
@@ -579,26 +585,26 @@ msgstr ""
579
585
"せん。オブジェクトがイテラブル (:term:`iterable`) かどうかを確認する唯一の信"
580
586
"頼できる方法は ``iter(obj)`` を呼び出すことです。"
581
587
582
- #: ../../library/collections.abc.rst:232
588
+ #: ../../library/collections.abc.rst:235
583
589
msgid "ABC for sized iterable container classes."
584
590
msgstr "サイズ付きのイテラブルなコンテナクラスの ABC です。"
585
591
586
- #: ../../library/collections.abc.rst:238
592
+ #: ../../library/collections.abc.rst:241
587
593
msgid ""
588
594
"ABC for classes that provide the :meth:`~iterator.__iter__` and :meth:"
589
595
"`~iterator.__next__` methods. See also the definition of :term:`iterator`."
590
596
msgstr ""
591
597
":meth:`~iterator.__iter__` メソッドと :meth:`~iterator.__next__` メソッドを提"
592
598
"供するクラスの ABC です。 :term:`iterator` の定義も参照してください。"
593
599
594
- #: ../../library/collections.abc.rst:244
600
+ #: ../../library/collections.abc.rst:247
595
601
msgid ""
596
602
"ABC for iterable classes that also provide the :meth:`~object.__reversed__` "
597
603
"method."
598
604
msgstr ""
599
605
":meth:`~object.__reversed__` メソッドを提供するイテラブルクラスの ABC です。"
600
606
601
- #: ../../library/collections.abc.rst:251
607
+ #: ../../library/collections.abc.rst:254
602
608
msgid ""
603
609
"ABC for :term:`generator` classes that implement the protocol defined in :"
604
610
"pep:`342` that extends :term:`iterators <iterator>` with the :meth:"
@@ -610,13 +616,19 @@ msgstr ""
610
616
"するプロトコルを実装する、:term:`ジェネレータ <generator>` クラスの ABC で"
611
617
"す。"
612
618
613
- #: ../../library/collections.abc.rst:262
619
+ #: ../../library/collections.abc.rst:259
620
+ msgid ""
621
+ "See :ref:`annotating-generators-and-coroutines` for details on using :class:"
622
+ "`!Generator` in type annotations."
623
+ msgstr ""
624
+
625
+ #: ../../library/collections.abc.rst:268
614
626
msgid "ABCs for read-only and mutable :term:`sequences <sequence>`."
615
627
msgstr ""
616
628
"読み出し専用の :term:`シーケンス <sequence>` およびミュータブルな :term:`シー"
617
629
"ケンス <sequence>` の ABC です。"
618
630
619
- #: ../../library/collections.abc.rst:264
631
+ #: ../../library/collections.abc.rst:270
620
632
msgid ""
621
633
"Implementation note: Some of the mixin methods, such as :meth:`~container."
622
634
"__iter__`, :meth:`~object.__reversed__` and :meth:`index`, make repeated "
@@ -634,11 +646,11 @@ msgstr ""
634
646
"の場合など) の場合、mixin は 2 乗のパフォーマンスとなるため、多くの場合上書き"
635
647
"する必要があるでしょう。"
636
648
637
- #: ../../library/collections.abc.rst:273
649
+ #: ../../library/collections.abc.rst:279
638
650
msgid "The index() method added support for *stop* and *start* arguments."
639
651
msgstr "index() メソッドは *stop* と *start* 引数をサポートしました。"
640
652
641
- #: ../../library/collections.abc.rst:277
653
+ #: ../../library/collections.abc.rst:283
642
654
msgid ""
643
655
"The :class:`ByteString` ABC has been deprecated. For use in typing, prefer a "
644
656
"union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. For "
@@ -649,23 +661,23 @@ msgstr ""
649
661
"てください。ABCとしての場合は :class:`Sequence` または :class:`collections."
650
662
"abc.Buffer` を使用してください。"
651
663
652
- #: ../../library/collections.abc.rst:286
664
+ #: ../../library/collections.abc.rst:292
653
665
msgid "ABCs for read-only and mutable :ref:`sets <types-set>`."
654
666
msgstr "読み出し専用でミュータブルな :ref:`集合 <types-set>` の ABC です。"
655
667
656
- #: ../../library/collections.abc.rst:291
668
+ #: ../../library/collections.abc.rst:297
657
669
msgid "ABCs for read-only and mutable :term:`mappings <mapping>`."
658
670
msgstr ""
659
671
"読み出し専用の :term:`マッピング <mapping>` およびミュータブルな :term:`マッ"
660
672
"ピング <mapping>` の ABC です。"
661
673
662
- #: ../../library/collections.abc.rst:298
674
+ #: ../../library/collections.abc.rst:304
663
675
msgid ""
664
676
"ABCs for mapping, items, keys, and values :term:`views <dictionary view>`."
665
677
msgstr ""
666
678
"マッピング、要素、キー、値の :term:`ビュー <dictionary view>` の ABC です。"
667
679
668
- #: ../../library/collections.abc.rst:302
680
+ #: ../../library/collections.abc.rst:308
669
681
msgid ""
670
682
"ABC for :term:`awaitable` objects, which can be used in :keyword:`await` "
671
683
"expressions. Custom implementations must provide the :meth:`~object."
@@ -674,15 +686,15 @@ msgstr ""
674
686
":keyword:`await` で使用できる :term:`awaitable` オブジェクトの ABC です。カス"
675
687
"タムの実装は、:meth:`~object.__await__` メソッドを提供しなければなりません。"
676
688
677
- #: ../../library/collections.abc.rst:306
689
+ #: ../../library/collections.abc.rst:312
678
690
msgid ""
679
691
":term:`Coroutine <coroutine>` objects and instances of the :class:"
680
692
"`~collections.abc.Coroutine` ABC are all instances of this ABC."
681
693
msgstr ""
682
694
":class:`~collections.abc.Coroutine` ABC の :term:`Coroutine <coroutine>` オブ"
683
695
"ジェクトとインスタンスは、すべてこの ABC のインスタンスです。"
684
696
685
- #: ../../library/collections.abc.rst:310
697
+ #: ../../library/collections.abc.rst:316
686
698
msgid ""
687
699
"In CPython, generator-based coroutines (:term:`generators <generator>` "
688
700
"decorated with :func:`@types.coroutine <types.coroutine>`) are *awaitables*, "
@@ -697,7 +709,7 @@ msgstr ""
697
709
"ンに対して ``False`` を返します。そのようなコルーチンを検出するためには :"
698
710
"func:`inspect.isawaitable` を使ってください。"
699
711
700
- #: ../../library/collections.abc.rst:320
712
+ #: ../../library/collections.abc.rst:326
701
713
msgid ""
702
714
"ABC for :term:`coroutine` compatible classes. These implement the following "
703
715
"methods, defined in :ref:`coroutine-objects`: :meth:`~coroutine.send`, :meth:"
@@ -712,7 +724,7 @@ msgstr ""
712
724
"`Coroutine` のすべてのインスタンスは、 :class:`Awaitable` のインスタンスでも"
713
725
"あります。"
714
726
715
- #: ../../library/collections.abc.rst:328
727
+ #: ../../library/collections.abc.rst:334
716
728
msgid ""
717
729
"In CPython, generator-based coroutines (:term:`generators <generator>` "
718
730
"decorated with :func:`@types.coroutine <types.coroutine>`) are *awaitables*, "
@@ -727,58 +739,71 @@ msgstr ""
727
739
"ンに対して ``False`` を返します。そのようなコルーチンを検出するためには :"
728
740
"func:`inspect.isawaitable` を使ってください。"
729
741
730
- #: ../../library/collections.abc.rst:338
742
+ #: ../../library/collections.abc.rst:340
743
+ msgid ""
744
+ "See :ref:`annotating-generators-and-coroutines` for details on using :class:"
745
+ "`!Coroutine` in type annotations. The variance and order of type parameters "
746
+ "correspond to those of :class:`Generator`."
747
+ msgstr ""
748
+
749
+ #: ../../library/collections.abc.rst:349
731
750
msgid ""
732
751
"ABC for classes that provide an ``__aiter__`` method. See also the "
733
752
"definition of :term:`asynchronous iterable`."
734
753
msgstr ""
735
754
"``__aiter__`` メソッドを提供するクラスの ABC です。:term:`asynchronous "
736
755
"iterable` の定義も参照してください。"
737
756
738
- #: ../../library/collections.abc.rst:345
757
+ #: ../../library/collections.abc.rst:356
739
758
msgid ""
740
759
"ABC for classes that provide ``__aiter__`` and ``__anext__`` methods. See "
741
760
"also the definition of :term:`asynchronous iterator`."
742
761
msgstr ""
743
762
"``__aiter__`` および ``__anext__`` メソッドを提供するクラスの ABC です。:"
744
763
"term:`asynchronous iterator` の定義も参照してください。"
745
764
746
- #: ../../library/collections.abc.rst:352
765
+ #: ../../library/collections.abc.rst:363
747
766
msgid ""
748
767
"ABC for :term:`asynchronous generator` classes that implement the protocol "
749
768
"defined in :pep:`525` and :pep:`492`."
750
769
msgstr ""
751
770
":pep:`525` と :pep:`492` に定義されているプロトコルを実装した :term:`非同期"
752
771
"ジェネレータ <asynchronous generator>` クラスの ABC です。"
753
772
754
- #: ../../library/collections.abc.rst:359
773
+ #: ../../library/collections.abc.rst:366
774
+ msgid ""
775
+ "See :ref:`annotating-generators-and-coroutines` for details on using :class:"
776
+ "`!AsyncGenerator` in type annotations."
777
+ msgstr ""
778
+
779
+ #: ../../library/collections.abc.rst:373
755
780
msgid ""
756
781
"ABC for classes that provide the :meth:`~object.__buffer__` method, "
757
782
"implementing the :ref:`buffer protocol <bufferobjects>`. See :pep:`688`."
758
783
msgstr ""
759
784
":ref:`buffer protocol <bufferobjects>` を実装する :meth:`~object.__buffer__` "
760
785
"メソッドを提供するクラスのABCです。:pep:`688` を参照してください。"
761
786
762
- #: ../../library/collections.abc.rst:365
787
+ #: ../../library/collections.abc.rst:379
763
788
msgid "Examples and Recipes"
764
789
msgstr "例とレシピ"
765
790
766
- #: ../../library/collections.abc.rst:367
791
+ #: ../../library/collections.abc.rst:381
767
792
msgid ""
768
793
"ABCs allow us to ask classes or instances if they provide particular "
769
794
"functionality, for example::"
770
795
msgstr ""
771
796
"抽象基底クラスは、クラスやインスタンスが特定の機能を提供しているかどうかを調"
772
797
"べることを可能にします。例えば::"
773
798
774
- #: ../../library/collections.abc.rst:370
799
+ #: ../../library/collections.abc.rst:384
775
800
msgid ""
776
801
"size = None\n"
777
802
"if isinstance(myvar, collections.abc.Sized):\n"
778
803
" size = len(myvar)"
779
804
msgstr ""
780
805
781
- #: ../../library/collections.abc.rst:374
806
+ #: ../../library/collections.abc.rst:388
782
807
msgid ""
783
808
"Several of the ABCs are also useful as mixins that make it easier to develop "
784
809
"classes supporting container APIs. For example, to write a class supporting "
@@ -793,7 +818,7 @@ msgstr ""
793
818
"__iter__`, :meth:`~object.__len__` だけが必要です。ABC が残りの :meth:`!"
794
819
"__and__` や :meth:`~frozenset.isdisjoint` といったメソッドを提供します::"
795
820
796
- #: ../../library/collections.abc.rst:381
821
+ #: ../../library/collections.abc.rst:395
797
822
msgid ""
798
823
"class ListBasedSet(collections.abc.Set):\n"
799
824
" ''' Alternate set implementation favoring space over speed\n"
@@ -819,12 +844,12 @@ msgid ""
819
844
"automatically"
820
845
msgstr ""
821
846
822
- #: ../../library/collections.abc.rst:403
847
+ #: ../../library/collections.abc.rst:417
823
848
msgid "Notes on using :class:`Set` and :class:`MutableSet` as a mixin:"
824
849
msgstr ""
825
850
":class:`Set` と :class:`MutableSet` を mixin 型として利用するときの注意点:"
826
851
827
- #: ../../library/collections.abc.rst:406
852
+ #: ../../library/collections.abc.rst:420
828
853
msgid ""
829
854
"Since some set operations create new sets, the default mixin methods need a "
830
855
"way to create new instances from an :term:`iterable`. The class constructor "
@@ -845,7 +870,7 @@ msgstr ""
845
870
"iterable 引数から新しいインスタンスを生成できるクラスメソッドあるいは仕様に"
846
871
"沿ったメソッドで :meth:`!_from_iterable` をオーバーライドする必要があります。"
847
872
848
- #: ../../library/collections.abc.rst:417
873
+ #: ../../library/collections.abc.rst:431
849
874
msgid ""
850
875
"To override the comparisons (presumably for speed, as the semantics are "
851
876
"fixed), redefine :meth:`~object.__le__` and :meth:`~object.__ge__`, then the "
@@ -855,7 +880,7 @@ msgstr ""
855
880
"meth:`~object.__le__` と :meth:`~object.__ge__` だけを再定義すれば、その他の"
856
881
"演算は自動的に追随します。"
857
882
858
- #: ../../library/collections.abc.rst:423
883
+ #: ../../library/collections.abc.rst:437
859
884
msgid ""
860
885
"The :class:`Set` mixin provides a :meth:`!_hash` method to compute a hash "
861
886
"value for the set; however, :meth:`~object.__hash__` is not defined because "
@@ -869,15 +894,15 @@ msgstr ""
869
894
"set を作る場合は、 :class:`Set` と :meth:`Hashable` の両方を継承して、 "
870
895
"``__hash__ = Set._hash`` と定義してください。"
871
896
872
- #: ../../library/collections.abc.rst:431
897
+ #: ../../library/collections.abc.rst:445
873
898
msgid ""
874
899
"`OrderedSet recipe <https://code.activestate.com/recipes/576694/>`_ for an "
875
900
"example built on :class:`MutableSet`."
876
901
msgstr ""
877
902
":class:`MutableSet` を使った例として `OrderedSet recipe <https://code."
878
903
"activestate.com/recipes/576694/>`_。"
879
904
880
- #: ../../library/collections.abc.rst:434
905
+ #: ../../library/collections.abc.rst:448
881
906
msgid "For more about ABCs, see the :mod:`abc` module and :pep:`3119`."
882
907
msgstr ""
883
908
"ABCs についての詳細は、 :mod:`abc` モジュールと :pep:`3119` を参照してくださ"
0 commit comments