[Python-checkins] Minor tweaks to typing union objects doc (GH-22741)

miss-islington webhook-mailer at python.org
Tue Oct 20 16:01:04 EDT 2020


https://github.com/python/cpython/commit/3393624b6da4b3ebe6448d1e8050ee0a8d208936
commit: 3393624b6da4b3ebe6448d1e8050ee0a8d208936
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-10-20T13:00:56-07:00
summary:

Minor tweaks to typing union objects doc (GH-22741)



Automerge-Triggered-By: @merwok

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 5c6acc66bb4cc..2fc7a6118a322 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4798,7 +4798,7 @@ type hinting syntax compared to :data:`typing.Union`.
 
 .. describe:: isinstance(obj, union_object)
 
-   Calls to :func:`isinstance` are also supported with a Union object::
+   Calls to :func:`isinstance` are also supported with a union object::
 
       >>> isinstance("", int | str)
       True
@@ -4819,7 +4819,7 @@ type hinting syntax compared to :data:`typing.Union`.
 
 .. describe:: issubclass(obj, union_object)
 
-   Calls to :func:`issubclass` are also supported with a Union Object.::
+   Calls to :func:`issubclass` are also supported with a union object::
 
       >>> issubclass(bool, int | str)
       True
@@ -4837,7 +4837,7 @@ type hinting syntax compared to :data:`typing.Union`.
         File "<stdin>", line 1, in <module>
       TypeError: issubclass() argument 2 cannot contain a parameterized generic
 
-The type for the Union object is :data:`types.Union`.  An object cannot be
+The type of a union object is :data:`types.Union`.  An object cannot be
 instantiated from the type::
 
    >>> import types



More information about the Python-checkins mailing list