From 0b918e81c1de909f753f1d02bcba0f831d63cfa8 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Mon, 24 Jun 2024 00:15:12 +0800 Subject: Typing docs: normalize some indents in code examples (#120912) --- Doc/library/typing.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index bf0ff9b..07b6e34 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) -- cgit v0.12