Skip to content
Merged
Changes from all 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
4 changes: 2 additions & 2 deletions docs/source/type_inference_and_annotations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ on the declared type of ``arg`` in ``foo``:
.. code-block:: python

def foo(arg: list[int]) -> None:
print('Items:', ''.join(str(a) for a in arg))
print('Items:', ', '.join(str(a) for a in arg))

foo([]) # OK

Expand All @@ -170,7 +170,7 @@ in the following statement:
.. code-block:: python

def foo(arg: list[int]) -> None:
print('Items:', ', '.join(arg))
print('Items:', ', '.join(str(a) for a in arg))

a = [] # Error: Need type annotation for "a"
foo(a)
Expand Down