https://github.com/python/cpython/commit/1fa595963ed512b055d2a4faddef5a9e544288ac
commit: 1fa595963ed512b055d2a4faddef5a9e544288ac
branch: main
author: Nyuan Zhang <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-06-15T22:36:10-07:00
summary:

gh-120572: add missing parentheses in TypeIs documentation (#120573)

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 94de64fcf835fc..bf0ff9bd348553 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1454,8 +1454,8 @@ These can be used as types in annotations. They all 
support subscription using
    to write such functions in a type-safe manner.
 
    If a ``TypeIs`` function is a class or instance method, then the type in
-   ``TypeIs`` maps to the type of the second parameter after ``cls`` or
-   ``self``.
+   ``TypeIs`` maps to the type of the second parameter (after ``cls`` or
+   ``self``).
 
    In short, the form ``def foo(arg: TypeA) -> TypeIs[TypeB]: ...``,
    means that if ``foo(arg)`` returns ``True``, then ``arg`` is an instance

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to