Skip to content

Commit 0b918e8

Browse files
authored
Typing docs: normalize some indents in code examples (#120912)
1 parent f4ddaa3 commit 0b918e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/typing.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ Type aliases are useful for simplifying complex type signatures. For example::
9797
# The static type checker will treat the previous type signature as
9898
# being exactly equivalent to this one.
9999
def broadcast_message(
100-
message: str,
101-
servers: Sequence[tuple[tuple[str, int], dict[str, str]]]) -> None:
100+
message: str,
101+
servers: Sequence[tuple[tuple[str, int], dict[str, str]]]
102+
) -> None:
102103
...
103104

104105
The :keyword:`type` statement is new in Python 3.12. For backwards
@@ -1871,8 +1872,8 @@ without the dedicated syntax, as documented below.
18711872
of ``*args``::
18721873

18731874
def call_soon[*Ts](
1874-
callback: Callable[[*Ts], None],
1875-
*args: *Ts
1875+
callback: Callable[[*Ts], None],
1876+
*args: *Ts
18761877
) -> None:
18771878
...
18781879
callback(*args)

0 commit comments

Comments
 (0)