From: khyox Date: Thu, 22 Jun 2017 13:14:57 +0000 (+0200) Subject: bpo-30619: Clarify typing.Union documentation (GH-2326) X-Git-Tag: v3.7.0a1~548 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6580c19bbbe7bc9bc0884699afd69184f523b32e;p=thirdparty%2FPython%2Fcpython.git bpo-30619: Clarify typing.Union documentation (GH-2326) When a class and its subclass are present, the latter is skipped. --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 1780739ad1dd..1e48fecdbf78 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -939,7 +939,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