]> granicus.if.org Git - python/commitdiff
bpo-30619: Clarify typing.Union documentation (GH-2326)
authorkhyox <jse.mnl@gmail.com>
Thu, 22 Jun 2017 13:14:57 +0000 (15:14 +0200)
committerMariatta <Mariatta@users.noreply.github.com>
Thu, 22 Jun 2017 13:14:57 +0000 (06:14 -0700)
When a class and its subclass are present, the latter is skipped.

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