Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
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
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Type aliases are useful for simplifying complex type signatures. For example::
...

The :keyword:`type` statement is new in Python 3.12. For backwards
compatibility, type aliases can also be created through simple assignment::
compatibility, type aliases can also be created through `assignment statements <https://docs.python.org/3/reference/simple_stmts.html#assignment-statements>`_:
Copy link
Contributor

@skirpichev skirpichev Nov 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
compatibility, type aliases can also be created through `assignment statements <https://docs.python.org/3/reference/simple_stmts.html#assignment-statements>`_:
compatibility, type aliases can also be created through :ref:`assignment statements <assignment>`:


Vector = list[float]

Expand Down
2 changes: 1 addition & 1 deletion Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ sequences of the same type, the lexicographical comparison is carried out
recursively. If all items of two sequences compare equal, the sequences are
considered equal. If one sequence is an initial sub-sequence of the other, the
shorter sequence is the smaller (lesser) one. Lexicographical ordering for
strings uses the Unicode code point number to order individual characters.
strings uses the Unicode code point to order individual characters.
Some examples of comparisons between sequences of the same type::

(1, 2, 3) < (1, 2, 4)
Expand Down
Loading