Skip to content

Commit

Permalink
fix another example
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Jun 23, 2024
1 parent 610646d commit 32918a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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

0 comments on commit 32918a2

Please sign in to comment.