From: Mariatta Date: Fri, 23 Jun 2017 02:18:05 +0000 (-0700) Subject: [3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338) X-Git-Tag: v3.5.4rc1~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce1bd6ac7ffaf396157a9ceb55b281a3b196323f;p=python [3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338) When a class and its subclass are present, the latter is skipped. (cherry picked from commit 6580c19bbbe7bc9bc0884699afd69184f523b32e) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 2ca3bcd5a2..adaad2909e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -861,7 +861,7 @@ The module defines the following classes, functions and decorators: Union[int, str] == Union[str, int] - * When a class and its subclass are present, the former is skipped, e.g.:: + * When a class and its subclass are present, the latter is skipped, e.g.:: Union[int, object] == object