Results of 1 - 10 of about 27 for GenericAlias (0.035 sec.)
- 型ヒントのためのオブジェクト — Python 3.14.8 ドキュメント 13775
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型ヒントのためのオブジェクト テーマ 自動 ライト ダーク | 型ヒントのためのオブジェクト
...¶ Various built-in types for type hinting are provided. Currently, two types exist -- GenericAlias and Union . Only GenericAlias is exposed to C. PyObject * Py_GenericAlias ( PyObject * origin , PyObject * args ) ¶ 次に属...します: Stable ABI (バージョン 3.9 より). GenericAlias オブジェクトを生成します。Pythonクラス types.GenericAlias を呼び出すことと同等です。引数 origin と args は GenericAlias の...rgs,) が設定されます。引数チェックは最小限なため、たとえ origin が型を示すオブジェクトでなくても関数呼び出しは成功します。 GenericAlias の __parameters__ 属性は __args__ から必要に応じて遅延生成されます。失敗した場合、例外が送出されて NULL を返します。 以下は... - https://man.mtool.work/python/3.14/c-api/typehints.html
- 型ヒントのためのオブジェクト — Python 3.14.8 ドキュメント 13775
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型ヒントのためのオブジェクト テーマ 自動 ライト ダーク | 型ヒントのためのオブジェクト
...¶ Various built-in types for type hinting are provided. Currently, two types exist -- GenericAlias and Union . Only GenericAlias is exposed to C. PyObject * Py_GenericAlias ( PyObject * origin , PyObject * args ) ¶ 次に属...します: Stable ABI (バージョン 3.9 より). GenericAlias オブジェクトを生成します。Pythonクラス types.GenericAlias を呼び出すことと同等です。引数 origin と args は GenericAlias の...rgs,) が設定されます。引数チェックは最小限なため、たとえ origin が型を示すオブジェクトでなくても関数呼び出しは成功します。 GenericAlias の __parameters__ 属性は __args__ から必要に応じて遅延生成されます。失敗した場合、例外が送出されて NULL を返します。 以下は... - https://man.mtool.work/python/3.14/c-api/typehints.html
- types --- 動的な型生成と組み込み型の名前 — Python 3.14.8 ドキュメント 9052
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » types --- 動的な型生成と組み込み型の名前 テーマ 自動 ライト ダーク | types --- 動的な型生成と組み込み型の名前 ¶ ソースコ
...ious attributes are set appropriately. class types. EllipsisType ¶ Ellipsis の型です。 Added in version 3.10. class types. GenericAlias ( t_origin , t_args ) ¶ The type of parameterized generics such as list[int] . t_origin should be a non-parameterized gene...ple or dict . t_args should be a tuple (possibly of length 1) of types which parameterize t_origin : >>> from types import GenericAlias >>> list [ int ] == GenericAlias ( list , ( int ,)) True >>> dict [ str , int ] == GenericAlias ( dict , ( str , int )) Tr...ue Added in version 3.9. バージョン 3.9.2 で変更: This type can now be subclassed. 参考 Generic Alias Types In-depth documentation on instances of types.GenericAlias PEP 585 - 標準コレクション型の型ヒントにおける総称型 (gen... - https://man.mtool.work/python/3.14/library/types.html
- 組み込み型 — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
...ユニオン ¶ 型アノテーション の中心となる組み込みの型は ジェネリックエイリアス と ユニオン です。 ジェネリックエイリアス型 ¶ GenericAlias オブジェクトは一般的に、クラスに 添字表記 をすることで作られます。 list や dict のような コンテナ系のクラス に対して使われ...ることがほとんどです。 例えば、 list[int] は list クラスに int という引数を与えた添字表記をすることで作られる GenericAlias オブジェクトです。 GenericAlias オブジェクトは主に 型アノテーション の用途で使われます。 注釈 一般に、クラスへの添字表記は...、そのクラスが特殊メソッド __class_getitem__() を実装しているときに限り可能です。 GenericAlias オブジェクトは パラメータ付きジェネリック型 を実装したジェネリック型 ( generic type ) の代用として振る舞います。 コンテナク... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- types --- 動的な型生成と組み込み型の名前 — Python 3.14.8 ドキュメント 8838
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » types --- 動的な型生成と組み込み型の名前 テーマ 自動 ライト ダーク | types --- 動的な型生成と組み込み型の名前 ¶ ソースコ
...ious attributes are set appropriately. class types. EllipsisType ¶ Ellipsis の型です。 Added in version 3.10. class types. GenericAlias ( t_origin , t_args ) ¶ The type of parameterized generics such as list[int] . t_origin should be a non-parameterized gene...ple or dict . t_args should be a tuple (possibly of length 1) of types which parameterize t_origin : >>> from types import GenericAlias >>> list [ int ] == GenericAlias ( list , ( int ,)) True >>> dict [ str , int ] == GenericAlias ( dict , ( str , int )) Tr...ue Added in version 3.9. バージョン 3.9.2 で変更: This type can now be subclassed. 参考 Generic Alias Types In-depth documentation on instances of types.GenericAlias PEP 585 - 標準コレクション型の型ヒントにおける総称型 (gen... - https://man.mtool.work/python/3.14/library/types.html
- 索引 — Python 3.14.8 ドキュメント 8459
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – _ _ (下線) gettext in numeric literal , [1] 文字列のフォーマットで _, identifiers __, identifiers __abs__() (object のメソッド) (opera
...(class attribute) (function の属性) (module attribute) (module の属性) (object の属性) (type の属性) (関数属性) __args__ (genericalias の属性) __await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bo...nal_keys__ (typing.TypedDict の属性) __or__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __origin__ (genericalias の属性) __package__ (module attribute) , [1] (module の属性) __parameters__ (genericalias の属性) __path__ (module attribu...bute) (definition の属性) (function attribute) (function の属性) (type の属性) (typing.TypeAliasType の属性) __unpacked__ (genericalias の属性) __unraisablehook__ (sys モジュール) __value__ (typing.TypeAliasType の属性) __xor__() (enum.Flag のメソッド) (obje... - https://man.mtool.work/python/3.14/genindex-_.html
- 索引 — Python 3.14.8 ドキュメント 8245
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – _ _ (下線) gettext in numeric literal , [1] 文字列のフォーマットで _, identifiers __, identifiers __abs__() (object のメソッド) (opera
...(class attribute) (function の属性) (module attribute) (module の属性) (object の属性) (type の属性) (関数属性) __args__ (genericalias の属性) __await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bo...nal_keys__ (typing.TypedDict の属性) __or__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __origin__ (genericalias の属性) __package__ (module attribute) , [1] (module の属性) __parameters__ (genericalias の属性) __path__ (module attribu...bute) (definition の属性) (function attribute) (function の属性) (type の属性) (typing.TypeAliasType の属性) __unpacked__ (genericalias の属性) __unraisablehook__ (sys モジュール) __value__ (typing.TypeAliasType の属性) __xor__() (enum.Flag のメソッド) (obje... - https://man.mtool.work/python/3.14/genindex-_.html
- 変更履歴 — Python 3.14.8 ドキュメント 8163
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...cannot be encoded to UTF-8 (such as lone surrogates) while -X importtime is enabled. gh-155752 : Fix a crash when a types.GenericAlias argument gains a __typing_subst__ hook after the alias parameters have been cached. gh-155504 : Fix a crash when thread st...ded builds. Contributed by Sergey Miryanov. gh-154275 : Fix a crash when getting deeply nested __parameters__ from a types.GenericAlias objects. gh-153932 : Fix thread safety issue in the __reduce__ method of enumerate . gh-153298 : Fixes a data race in type...s.GenericAlias __parameters__ initialization on free-threading builds. gh-153205 : Fix a potential SystemError during vector calls when m... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 変更履歴 — Python 3.14.8 ドキュメント 7801
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...cannot be encoded to UTF-8 (such as lone surrogates) while -X importtime is enabled. gh-155752 : Fix a crash when a types.GenericAlias argument gains a __typing_subst__ hook after the alias parameters have been cached. gh-155504 : Fix a crash when thread st...ded builds. Contributed by Sergey Miryanov. gh-154275 : Fix a crash when getting deeply nested __parameters__ from a types.GenericAlias objects. gh-153932 : Fix thread safety issue in the __reduce__ method of enumerate . gh-153298 : Fixes a data race in type...s.GenericAlias __parameters__ initialization on free-threading builds. gh-153205 : Fix a potential SystemError during vector calls when m... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 索引 — Python 3.14.8 ドキュメント 7653
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – G gaierror gamma() (math モジュール) gammavariate() (random モジュール) garbage (gc モジュール) garbage collection , [1] gather() (asy
...ール) GeneratorExit 例外 , [1] GeneratorExp (ast のクラス) generators (__future__ モジュール) GeneratorType (types のクラス) Generic Alias Generic (typing のクラス) generic function generic type generic_visit() (ast.NodeVisitor のメソッド) GenericAlias object... - https://man.mtool.work/python/3.14/genindex-G.html