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

Doc/library/typing.rst

index 2ca3bcd5a2cea77ecc3b2eca71d87e0befc81cff..adaad2909eafb11e49f830aff5267e14857e9ac3 100644 (file)
@@ -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