https://github.com/python/cpython/commit/d6791cd9338e08a5b51d77e16009393f3781a4b5
commit: d6791cd9338e08a5b51d77e16009393f3781a4b5
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: AlexWaygood <[email protected]>
date: 2024-06-23T16:31:40Z
summary:

[3.13] Typing docs: normalize some indents in code examples (GH-120912) 
(#120915)

Co-authored-by: Nyakku Shigure <[email protected]>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 6a369292048a23..8e334e982b1458 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)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to