From 1ee20f7c4a4031a690123f013bf048fe7d79cbed Mon Sep 17 00:00:00 2001 From: Ali Hamdan Date: Sat, 21 Dec 2024 15:36:22 +0100 Subject: [PATCH] Fix typos in `TypeIs` docstring (#524) --- src/typing_extensions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typing_extensions.py b/src/typing_extensions.py index e242d427..993a284d 100644 --- a/src/typing_extensions.py +++ b/src/typing_extensions.py @@ -2141,7 +2141,7 @@ def TypeIs(self, parameters): 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument - is the intersection of the type inside ``TypeGuard`` and the argument's + is the intersection of the type inside ``TypeIs`` and the argument's previously known type. For example:: @@ -2189,7 +2189,7 @@ def __getitem__(self, parameters): 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument - is the intersection of the type inside ``TypeGuard`` and the argument's + is the intersection of the type inside ``TypeIs`` and the argument's previously known type. For example::