Skip to content

Commit 1ee20f7

Browse files
authored
Fix typos in TypeIs docstring (#524)
1 parent 6f84687 commit 1ee20f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typing_extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ def TypeIs(self, parameters):
21412141
21422142
1. The return value is a boolean.
21432143
2. If the return value is ``True``, the type of its argument
2144-
is the intersection of the type inside ``TypeGuard`` and the argument's
2144+
is the intersection of the type inside ``TypeIs`` and the argument's
21452145
previously known type.
21462146
21472147
For example::
@@ -2189,7 +2189,7 @@ def __getitem__(self, parameters):
21892189
21902190
1. The return value is a boolean.
21912191
2. If the return value is ``True``, the type of its argument
2192-
is the intersection of the type inside ``TypeGuard`` and the argument's
2192+
is the intersection of the type inside ``TypeIs`` and the argument's
21932193
previously known type.
21942194
21952195
For example::

0 commit comments

Comments
 (0)