Skip to content

Commit

Permalink
Typing docs: normalize some indents in code examples (python#120912)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored Jun 23, 2024
1 parent f4ddaa3 commit 0b918e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0b918e8

Please sign in to comment.