summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-11-19 18:30:07 (GMT)
committerGitHub <noreply@github.com>2023-11-19 18:30:07 (GMT)
commitf8129146ef9e1b71609ef4becc5d508061970733 (patch)
tree7c56f3c64c78cca42c9a175a3f12696166b9f026 /Objects
parent77d9f1e6d9aad637667264c16c83d255526cc1ba (diff)
downloadcpython-f8129146ef9e1b71609ef4becc5d508061970733.zip
cpython-f8129146ef9e1b71609ef4becc5d508061970733.tar.gz
cpython-f8129146ef9e1b71609ef4becc5d508061970733.tar.bz2
gh-112266: Remove `(if defined)` part from `__dict__` and `__weakref__` docstrings (#112268)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 4464b5a..f5975a3 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3006,21 +3006,21 @@ subtype_getweakref(PyObject *obj, void *context)
static PyGetSetDef subtype_getsets_full[] = {
{"__dict__", subtype_dict, subtype_setdict,
- PyDoc_STR("dictionary for instance variables (if defined)")},
+ PyDoc_STR("dictionary for instance variables")},
{"__weakref__", subtype_getweakref, NULL,
- PyDoc_STR("list of weak references to the object (if defined)")},
+ PyDoc_STR("list of weak references to the object")},
{0}
};
static PyGetSetDef subtype_getsets_dict_only[] = {
{"__dict__", subtype_dict, subtype_setdict,
- PyDoc_STR("dictionary for instance variables (if defined)")},
+ PyDoc_STR("dictionary for instance variables")},
{0}
};
static PyGetSetDef subtype_getsets_weakref_only[] = {
{"__weakref__", subtype_getweakref, NULL,
- PyDoc_STR("list of weak references to the object (if defined)")},
+ PyDoc_STR("list of weak references to the object")},
{0}
};