diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-23 16:31:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-23 16:31:40 (GMT) |
commit | d6791cd9338e08a5b51d77e16009393f3781a4b5 (patch) | |
tree | a07ad3a13115b0b67bb222bf763529b462ad1556 /Doc/library/typing.rst | |
parent | 99f18ea68934cb59c89c09e946aa1a504bb33065 (diff) | |
download | cpython-d6791cd9338e08a5b51d77e16009393f3781a4b5.zip cpython-d6791cd9338e08a5b51d77e16009393f3781a4b5.tar.gz cpython-d6791cd9338e08a5b51d77e16009393f3781a4b5.tar.bz2 |
[3.13] Typing docs: normalize some indents in code examples (GH-120912) (#120915)
Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r-- | Doc/library/typing.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 6a36929..8e334e9 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -97,8 +97,9 @@ Type aliases are useful for simplifying complex type signatures. For example:: # The static type checker will treat the previous type signature as # being exactly equivalent to this one. def broadcast_message( - message: str, - servers: Sequence[tuple[tuple[str, int], dict[str, str]]]) -> None: + message: str, + servers: Sequence[tuple[tuple[str, int], dict[str, str]]] + ) -> None: ... The :keyword:`type` statement is new in Python 3.12. For backwards @@ -1871,8 +1872,8 @@ without the dedicated syntax, as documented below. of ``*args``:: def call_soon[*Ts]( - callback: Callable[[*Ts], None], - *args: *Ts + callback: Callable[[*Ts], None], + *args: *Ts ) -> None: ... callback(*args) |