8000 Typing docs: normalize some indents in code examples by SigureMo · Pull Request #120912 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Typing docs: normalize some indents in code examples #120912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix another example
  • Loading branch information
SigureMo committed Jun 23, 2024
commit 32918a2861ee255748ed7b147294439eb96ee0be
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
Loading
0