Results of 1 - 10 of about 115 for annotations (0.038 sec.)
- annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 12719
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib
...--- Functionality for introspecting annotations ¶ Added in version 3.14. Source code: Lib/annotationlib.py The annotationlib module provides tools for introspecting annot...ations on modules, classes, and functions. Annotations are lazily evaluated and often contain forward references to objects that are not yet defined when the annotation is creat...ed. This module provides a set of low-level tools that can be used to retrieve annotations in a reliable way, even in the presence of forward references and other edge cases. This module supports retrieving annota... - https://man.mtool.work/python/3.14/library/annotationlib.html
- annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 12719
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib
...--- Functionality for introspecting annotations ¶ Added in version 3.14. Source code: Lib/annotationlib.py The annotationlib module provides tools for introspecting annot...ations on modules, classes, and functions. Annotations are lazily evaluated and often contain forward references to objects that are not yet defined when the annotation is creat...ed. This module provides a set of low-level tools that can be used to retrieve annotations in a reliable way, even in the presence of forward references and other edge cases. This module supports retrieving annota... - https://man.mtool.work/python/3.14/library/annotationlib.html
- アノテーションのベストプラクティス — Python 3.14.8 ドキュメント 11576
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » アノテーションのベストプラクティス テーマ 自動 ライト ダーク | アノテーションのベストプラクティス ¶ author : Larry Hastings 概要 このドキュメントは
...、アノテーションの辞書を扱う上でのベストプラクティスをまとめるものです。Python オブジェクトに付与された __annotations__ を Python コードからアクセスする際には、以下のガイドラインに従うことを推奨します。 本ドキュメントは次の4セクションで構成...ティス、Python 3.9 以下でオブジェクトのアノテーションにアクセスするときのベストプラクティス、Python バージョンに関わらない __annotations__ に関するベストプラクティス、 __annotations__ の注意点、です。 注意:本ドキュメントは、アノテーションの使い方ではなく、 __...してください。 オブジェクトのアノテーション辞書へのアクセス (Python 3.10 以降) ¶ Python 3.10 で標準ライブラリに inspect.get_annotations() 関数が新たに追加されました。Python 3.10 から 3.13 までは、アノテーションに対応しているオブジェクトのアノテーション辞書に... - https://man.mtool.work/python/3.14/howto/annotations.html
- アノテーションのベストプラクティス — Python 3.14.8 ドキュメント 11539
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » アノテーションのベストプラクティス テーマ 自動 ライト ダーク | アノテーションのベストプラクティス ¶ author : Larry Hastings 概要 このドキュメントは
...、アノテーションの辞書を扱う上でのベストプラクティスをまとめるものです。Python オブジェクトに付与された __annotations__ を Python コードからアクセスする際には、以下のガイドラインに従うことを推奨します。 本ドキュメントは次の4セクションで構成...ティス、Python 3.9 以下でオブジェクトのアノテーションにアクセスするときのベストプラクティス、Python バージョンに関わらない __annotations__ に関するベストプラクティス、 __annotations__ の注意点、です。 注意:本ドキュメントは、アノテーションの使い方ではなく、 __...してください。 オブジェクトのアノテーション辞書へのアクセス (Python 3.10 以降) ¶ Python 3.10 で標準ライブラリに inspect.get_annotations() 関数が新たに追加されました。Python 3.10 から 3.13 までは、アノテーションに対応しているオブジェクトのアノテーション辞書に... - https://man.mtool.work/python/3.14/howto/annotations.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 8299
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...りに、アノテーションは専用の annotate 関数 に格納され、必要になったときのみ評価されるようになります ( from __future__ import annotations を使用している場合を除く)。 この変更により、Pythonのアノテーションのパフォーマンスと使いやすさがほとんどの状況で向上します...(アノテーションを文字列として返す) があります。 各フォーマットの挙動は以下の例の通りです: >>> from annotationlib import get_annotations , Format >>> def func ( arg : Undefined ): ... pass >>> get_annotations ( func , format = Format . VALUE ) Traceback (most...recent call last): ... NameError : name 'Undefined' is not defined >>> get_annotations ( func , format = Format . FORWARDREF ) {'arg': ForwardRef('Undefined', owner=<function func at 0x...>)} >>> get_annotatio... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 8224
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...りに、アノテーションは専用の annotate 関数 に格納され、必要になったときのみ評価されるようになります ( from __future__ import annotations を使用している場合を除く)。 この変更により、Pythonのアノテーションのパフォーマンスと使いやすさがほとんどの状況で向上します...(アノテーションを文字列として返す) があります。 各フォーマットの挙動は以下の例の通りです: >>> from annotationlib import get_annotations , Format >>> def func ( arg : Undefined ): ... pass >>> get_annotations ( func , format = Format . VALUE ) Traceback (most...recent call last): ... NameError : name 'Undefined' is not defined >>> get_annotations ( func , format = Format . FORWARDREF ) {'arg': ForwardRef('Undefined', owner=<function func at 0x...>)} >>> get_annotatio... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 8035
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...e defines the following classes, functions and decorators. 特殊型付けプリミティブ ¶ 特殊型 ¶ These can be used as types in annotations. They do not support subscription using [] . typing. Any ¶ 制約のない型であることを示す特別な型です。 Every type is assign...uld ignore the metadata and simply treat the annotation as T . As such, Annotated can be useful for code that wants to use annotations for purposes outside Python's static typing system. Using Annotated[T, x] as an annotation still allows for static typeche...gnore the metadata x . In this way, Annotated differs from the @no_type_check decorator, which can also be used for adding annotations outside the scope of the typing system, but completely disables typechecking for a function or class. The responsibility o... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 8035
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...e defines the following classes, functions and decorators. 特殊型付けプリミティブ ¶ 特殊型 ¶ These can be used as types in annotations. They do not support subscription using [] . typing. Any ¶ 制約のない型であることを示す特別な型です。 Every type is assign...uld ignore the metadata and simply treat the annotation as T . As such, Annotated can be useful for code that wants to use annotations for purposes outside Python's static typing system. Using Annotated[T, x] as an annotation still allows for static typeche...gnore the metadata x . In this way, Annotated differs from the @no_type_check decorator, which can also be used for adding annotations outside the scope of the typing system, but completely disables typechecking for a function or class. The responsibility o... - https://man.mtool.work/python/3.14/library/typing.html
- 変更履歴 — Python 3.14.8 ドキュメント 7370
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...oncurrently with the startup of non-daemon threads in the free-threaded build . gh-154902 : Fix a crash when __conditional_annotations__ is rebound to a non-set object. gh-151464 : Exclude invalid token <> from tokenize output. SyntaxError for <> now sugges...hen compiling a class-scope comprehension containing a lambda that references __class__ , __classdict__ , or __conditional_annotations__ . Patch by Bartosz Sławecki. gh-150633 : Fix the frozen importer accepting module names with embedded null bytes, which...pdecimal 4.0.1. IDLE ¶ bpo-6699 : Warn the user if a file will be overwritten when saving. C API ¶ gh-150907 : Fix dynamic_annotations.h header file when built with C++ and Valgrind: add extern "C++" scope for the C++ template. Patch by Victor Stinner. gh-1... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- What's New In Python 3.10 — Python 3.14.8 ドキュメント 7257
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と
...and class methods ( @classmethod ) now inherit the method attributes ( __module__ , __name__ , __qualname__ , __doc__ , __annotations__ ) and have a new __wrapped__ attribute. Moreover, static methods are now callable as regular functions. (Contributed by...Victor Stinner in bpo-43682 .) Annotations for complex targets (everything beside simple name targets defined by PEP 526 ) no longer cause any runtime effects with f...rom __future__ import annotations . (Contributed by Batuhan Taskaya in bpo-42737 .) Class and module objects now lazy-create empty annotations dicts on dema... - https://man.mtool.work/python/3.14/whatsnew/3.10.html