Results of 1 - 10 of about 42 for annotated (0.041 sec.)
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 14028
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...# 以下の再代入は OK: ``tuple`` は ``tuple[Any, ...]`` と等価 z = ( 1 , 2 , 3 ) z = () クラスオブジェクトの型 ¶ A variable annotated with C may accept a value of type C . In contrast, a variable annotated with type[C] (or deprecated typing.Type[C] ) may a...nt to type , which is the root of Python's metaclass hierarchy . Annotating generators and coroutines ¶ A generator can be annotated using the generic type Generator[YieldType, SendType, ReturnType] . For example: def echo_round () -> Generator [ int , fl...rator [ int , None , None ]: while True : yield start start += 1 Simple generators that only ever yield values can also be annotated as having a return type of either Iterable[YieldType] or Iterator[YieldType] : def infinite_stream ( start : int ) -> Iter... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 14028
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...# 以下の再代入は OK: ``tuple`` は ``tuple[Any, ...]`` と等価 z = ( 1 , 2 , 3 ) z = () クラスオブジェクトの型 ¶ A variable annotated with C may accept a value of type C . In contrast, a variable annotated with type[C] (or deprecated typing.Type[C] ) may a...nt to type , which is the root of Python's metaclass hierarchy . Annotating generators and coroutines ¶ A generator can be annotated using the generic type Generator[YieldType, SendType, ReturnType] . For example: def echo_round () -> Generator [ int , fl...rator [ int , None , None ]: while True : yield start start += 1 Simple generators that only ever yield values can also be annotated as having a return type of either Iterable[YieldType] or Iterator[YieldType] : def infinite_stream ( start : int ) -> Iter... - https://man.mtool.work/python/3.14/library/typing.html
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 9677
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...mt | class_def | with_stmt | for_stmt | try_stmt | while_stmt | match_stmt # SIMPLE STATEMENTS # ================= # NOTE: annotated_rhs may start with 'yield'; yield_expr must start with 'yield' assignment : | NAME ':' expression [ '=' annotated_rhs ] |...( '(' single_target ')' | single_subscript_attribute_target ) ':' expression [ '=' annotated_rhs ] | ( star_targets '=' ) + annotated_rhs !'=' [ TYPE_COMMENT ] | single_target augassign ~ annotated_rhs annotated_rhs...NAME # LITERALS # ======== fstring_middle : | fstring_replacement_field | FSTRING_MIDDLE fstring_replacement_field : | '{' annotated_rhs '=' ? [ fstring_conversion ] [ fstring_full_format_spec ] '}' fstring_conversion : | "!" NAME fstring_full_format_spec... - https://man.mtool.work/python/3.14/reference/grammar.html
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 9429
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...mt | class_def | with_stmt | for_stmt | try_stmt | while_stmt | match_stmt # SIMPLE STATEMENTS # ================= # NOTE: annotated_rhs may start with 'yield'; yield_expr must start with 'yield' assignment : | NAME ':' expression [ '=' annotated_rhs ] |...( '(' single_target ')' | single_subscript_attribute_target ) ':' expression [ '=' annotated_rhs ] | ( star_targets '=' ) + annotated_rhs !'=' [ TYPE_COMMENT ] | single_target augassign ~ annotated_rhs annotated_rhs...NAME # LITERALS # ======== fstring_middle : | fstring_replacement_field | FSTRING_MIDDLE fstring_replacement_field : | '{' annotated_rhs '=' ? [ fstring_conversion ] [ fstring_full_format_spec ] '}' fstring_conversion : | "!" NAME fstring_full_format_spec... - https://man.mtool.work/python/3.14/reference/grammar.html
- 索引 — Python 3.14.8 ドキュメント 8841
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – 代 代入 annotated augmented expression slice statement , [1] target list クラス 属性 クラスインスタンス 属性 スライス 属性 , [1] 添字
...添字表記 関連キーワード 属性 クラス 添字 Index 代入 annotated augmented expression slice statement target list インスタンス スライス 表記 « ナビゲーション 索引 モジュール | Python » 3.... - https://man.mtool.work/python/3.14/genindex-代.html
- 索引 — Python 3.14.8 ドキュメント 8841
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – 代 代入 annotated augmented expression slice statement , [1] target list クラス 属性 クラスインスタンス 属性 スライス 属性 , [1] 添字
...添字表記 関連キーワード 属性 添字 Index 代入 annotated augmented expression slice statement target list インスタンス スライス 表記 « ナビゲーション 索引 モジュール | Python » 3.... - https://man.mtool.work/python/3.14/genindex-代.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8345
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | augmented_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt | return_stmt | yield_stmt | raise_stmt | break_stmt | continue_stmt | import_stmt...照のターゲットの場合、 クラス属性とインスタンス属性についての注意 と同様に通常の代入が適用されます。 7.2.2. 注釈付き代入文 (annotated assignment statements) ¶ 注釈 代入は、1 つの文の中で変数や属性のアノテーションとオプションの代入文を組み合わせたものです:...でローカルなものになります。 注釈は絶対に評価されず、関数スコープにも格納されません。 If the right hand side is present, an annotated assignment performs the actual assignment as if there was no annotation present. If the right hand side is not present for... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8098
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | augmented_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt | return_stmt | yield_stmt | raise_stmt | break_stmt | continue_stmt | import_stmt...照のターゲットの場合、 クラス属性とインスタンス属性についての注意 と同様に通常の代入が適用されます。 7.2.2. 注釈付き代入文 (annotated assignment statements) ¶ 注釈 代入は、1 つの文の中で変数や属性のアノテーションとオプションの代入文を組み合わせたものです:...でローカルなものになります。 注釈は絶対に評価されず、関数スコープにも格納されません。 If the right hand side is present, an annotated assignment performs the actual assignment as if there was no annotation present. If the right hand side is not present for... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 変更履歴 — Python 3.14.8 ドキュメント 7587
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...: Dedent credits text. gh-138891 : Fix SyntaxError when inspect.get_annotations(f, eval_str=True) is called on a function annotated with a PEP 646 star_expression gh-130567 : Fix possible crash in locale.strxfrm() due to a platform bug on macOS. gh-13885...r the st_rdev field of the os.stat_result structure. gh-137706 : Fix the partial evaluation of annotations that use typing.Annotated[T, x] where T is a forward reference. gh-88375 : Fix normalization of the robots.txt rules and URLs in the urllib.robotpar...ameError when calling typing.get_type_hints() on a dataclasses.dataclass() created by dataclasses.make_dataclass() with un-annotated fields. gh-122559 : Remove __reduce__() and __reduce_ex__() methods that always raise TypeError in the C implementation of... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 索引 — Python 3.14.8 ドキュメント 7432
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc
...rator モジュール) android_ver() (platform モジュール) anext() built-in function AnnAssign (ast のクラス) annotate function annotated 代入 Annotated (typing モジュール) annotation (inspect.Parameter の属性) ANNOTATION (symtable.SymbolTableType の属性) anno... - https://man.mtool.work/python/3.14/genindex-A.html