]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45391: mark UnionType as a class in documentation (GH-28757)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Dec 2021 13:17:36 +0000 (05:17 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Dec 2021 13:17:36 +0000 (05:17 -0800)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
(cherry picked from commit e2cfc89e099b8fad5d8d5bd7f59dadffb6078778)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Doc/library/types.rst

index 2314b02c7449c0bcff53478e2776955cf9269743..5cd42f1fc2928d14092140e78cfb430269a17ff8 100644 (file)
@@ -312,7 +312,7 @@ Standard names are defined for the following types:
       This type can now be subclassed.
 
 
-.. data:: UnionType
+.. class:: UnionType
 
    The type of :ref:`union type expressions<types-union>`.