From 8e49dd263bb33bde7144ffb1f6e515bda2f0f410 Mon Sep 17 00:00:00 2001 From: khyox Date: Thu, 22 Jun 2017 10:24:20 +0200 Subject: [PATCH] Correct bug #30619 Following http://bugs.python.org/issue30619. From line 942, it was the example (and not the text) which is consistent with PEP 483: Corollary: Union[..., object, ...] returns object So, the correction is to substitute 'former' for 'latter'. --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 1780739ad1dd43..1e48fecdbf78a4 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