]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor tweaks to typing union objects doc (GH-22741)
authorAndre Delfino <adelfino@gmail.com>
Tue, 20 Oct 2020 20:00:56 +0000 (17:00 -0300)
committerGitHub <noreply@github.com>
Tue, 20 Oct 2020 20:00:56 +0000 (13:00 -0700)
Automerge-Triggered-By: @merwok
Doc/library/stdtypes.rst

index 5c6acc66bb4cc3cf83a0ac00fc4c702aaca54995..2fc7a6118a322d1a9c306cb081d277d72efc0491 100644 (file)
@@ -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