summaryrefslogtreecommitdiffstats
path: root/Objects/unionobject.c
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2022-04-18 03:39:32 (GMT)
committerGitHub <noreply@github.com>2022-04-18 03:39:32 (GMT)
commita573cb2fec664c645ab744658d7e941d72e1a398 (patch)
treea44303e326da2ea7406397c6640cf0d51ab3eb43 /Objects/unionobject.c
parent328dbc051f84bd5fdf61101bb4fa61d85f8b7feb (diff)
downloadcpython-a573cb2fec664c645ab744658d7e941d72e1a398.zip
cpython-a573cb2fec664c645ab744658d7e941d72e1a398.tar.gz
cpython-a573cb2fec664c645ab744658d7e941d72e1a398.tar.bz2
gh-91118: Fix docstrings that do not honor --without-doc-strings (#31769)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Objects/unionobject.c')
-rw-r--r--Objects/unionobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unionobject.c b/Objects/unionobject.c
index 72a0a3f..5432c6f 100644
--- a/Objects/unionobject.c
+++ b/Objects/unionobject.c
@@ -443,9 +443,9 @@ union_getattro(PyObject *self, PyObject *name)
PyTypeObject _PyUnion_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_name = "types.UnionType",
- .tp_doc = "Represent a PEP 604 union type\n"
+ .tp_doc = PyDoc_STR("Represent a PEP 604 union type\n"
"\n"
- "E.g. for int | str",
+ "E.g. for int | str"),
.tp_basicsize = sizeof(unionobject),
.tp_dealloc = unionobject_dealloc,
.tp_alloc = PyType_GenericAlloc,