]> granicus.if.org Git - python/commitdiff
[3.6] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2337)
authorMariatta <Mariatta@users.noreply.github.com>
Fri, 23 Jun 2017 01:52:57 +0000 (18:52 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2017 01:52:57 +0000 (18:52 -0700)
When a class and its subclass are present, the latter is skipped.
(cherry picked from commit 6580c19bbbe7bc9bc0884699afd69184f523b32e)

Doc/library/typing.rst

index 1780739ad1dd438fa7eefa6b7cf37057037df77e..1e48fecdbf78a474fb1f3b93766f9011c69707f6 100644 (file)
@@ -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