Skip to content

Commit

Permalink
type_narrowing.rst: fix syntax, consistency (#15652)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst committed Jul 13, 2023
1 parent b78f4b5 commit 8a5d8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/type_narrowing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Generic TypeGuards
else:
reveal_type(names) # tuple[str, ...]
Typeguards with parameters
TypeGuards with parameters
~~~~~~~~~~~~~~~~~~~~~~~~~~

Type guard functions can accept extra arguments:
Expand All @@ -293,7 +293,7 @@ Type guard functions can accept extra arguments:
TypeGuards as methods
~~~~~~~~~~~~~~~~~~~~~

A method can also serve as the ``TypeGuard``:
A method can also serve as a ``TypeGuard``:

.. code-block:: python
Expand Down

0 comments on commit 8a5d8f0

Please sign in to comment.