8000 [3.13] Typing docs: normalize some indents in code examples (GH-12091… · python/cpython@d6791cd · GitHub
[go: up one dir, main page]

Skip to content

Commit d6791cd

Browse files
[3.13] Typing docs: normalize some indents in code examples (GH-120912) (#120915)
Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
1 parent 99f18ea commit d6791cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/typing.rst

Lines changed: 5 additions & 4 deletions
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)
0