diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-19 18:30:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-19 18:30:07 (GMT) |
commit | f8129146ef9e1b71609ef4becc5d508061970733 (patch) | |
tree | 7c56f3c64c78cca42c9a175a3f12696166b9f026 /Objects | |
parent | 77d9f1e6d9aad637667264c16c83d255526cc1ba (diff) | |
download | cpython-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.c | 8 |
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} }; |