From 8a5d8f085185c41fce15ab108db236f1d94e5b62 Mon Sep 17 00:00:00 2001 From: Ilya Priven Date: Thu, 13 Jul 2023 00:43:08 -0700 Subject: [PATCH] type_narrowing.rst: fix syntax, consistency (#15652) --- docs/source/type_narrowing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/type_narrowing.rst b/docs/source/type_narrowing.rst index 72a816679140..4bc0fda70138 100644 --- a/docs/source/type_narrowing.rst +++ b/docs/source/type_narrowing.rst @@ -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: @@ -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