summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-10-20 20:00:56 (GMT)
committerGitHub <noreply@github.com>2020-10-20 20:00:56 (GMT)
commit3393624b6da4b3ebe6448d1e8050ee0a8d208936 (patch)
tree36047db10276636dbe508ff048430091b57aeb21
parent3f7e990fd49dbabc1dde41ce58c1bdda9f56ead7 (diff)
downloadcpython-3393624b6da4b3ebe6448d1e8050ee0a8d208936.zip
cpython-3393624b6da4b3ebe6448d1e8050ee0a8d208936.tar.gz
cpython-3393624b6da4b3ebe6448d1e8050ee0a8d208936.tar.bz2
Minor tweaks to typing union objects doc (GH-22741)
Automerge-Triggered-By: @merwok
-rw-r--r--Doc/library/stdtypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 5c6acc6..2fc7a61 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