Skip to content

Commit 8a5d8f0

Browse files
authored
type_narrowing.rst: fix syntax, consistency (#15652)
1 parent b78f4b5 commit 8a5d8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/type_narrowing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Generic TypeGuards
271271
else:
272272
reveal_type(names) # tuple[str, ...]
273273
274-
Typeguards with parameters
274+
TypeGuards with parameters
275275
~~~~~~~~~~~~~~~~~~~~~~~~~~
276276

277277
Type guard functions can accept extra arguments:
@@ -293,7 +293,7 @@ Type guard functions can accept extra arguments:
293293
TypeGuards as methods
294294
~~~~~~~~~~~~~~~~~~~~~
295295

296-
A method can also serve as the ``TypeGuard``:
296+
A method can also serve as a ``TypeGuard``:
297297

298298
.. code-block:: python
299299

0 commit comments

Comments
 (0)