summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorHasan <hasan.aleeyev@gmail.com>2021-07-26 16:00:21 (GMT)
committerGitHub <noreply@github.com>2021-07-26 16:00:21 (GMT)
commit2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0 (patch)
tree40f917eb11c9ce8faf3fabd4d6ed25308c7b34ca /Objects
parent3e5b82ed7e26e76948f514f3e3b25b441573bbdb (diff)
downloadcpython-2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0.zip
cpython-2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0.tar.gz
cpython-2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0.tar.bz2
bpo-44732: Rename types.Union to types.UnionType (#27342)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unionobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unionobject.c b/Objects/unionobject.c
index 475311e..9e670b4 100644
--- a/Objects/unionobject.c
+++ b/Objects/unionobject.c
@@ -1,4 +1,4 @@
-// types.Union -- used to represent e.g. Union[int, str], int | str
+// types.UnionType -- used to represent e.g. Union[int, str], int | str
#include "Python.h"
#include "pycore_object.h" // _PyObject_GC_TRACK/UNTRACK
#include "pycore_unionobject.h"
@@ -414,7 +414,7 @@ union_parameters(PyObject *self, void *Py_UNUSED(unused))
}
static PyGetSetDef union_properties[] = {
- {"__parameters__", union_parameters, (setter)NULL, "Type variables in the types.Union.", NULL},
+ {"__parameters__", union_parameters, (setter)NULL, "Type variables in the types.UnionType.", NULL},
{0}
};
@@ -424,7 +424,7 @@ static PyNumberMethods union_as_number = {
PyTypeObject _PyUnion_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
- .tp_name = "types.Union",
+ .tp_name = "types.UnionType",
.tp_doc = "Represent a PEP 604 union type\n"
"\n"
"E.g. for int | str",