We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e7e41 commit f774d49Copy full SHA for f774d49
Doc/library/typing.rst
@@ -1394,8 +1394,8 @@ These can be used as types in annotations. They all support subscription using
1394
print("Not a list of strings!")
1395
1396
If ``is_str_list`` is a class or instance method, then the type in
1397
- ``TypeGuard`` maps to the type of the second parameter after ``cls`` or
1398
- ``self``.
+ ``TypeGuard`` maps to the type of the second parameter (after ``cls`` or
+ ``self``).
1399
1400
In short, the form ``def foo(arg: TypeA) -> TypeGuard[TypeB]: ...``,
1401
means that if ``foo(arg)`` returns ``True``, then ``arg`` narrows from
0 commit comments