diff options
author | Ivan Savov <ivan.savov@gmail.com> | 2022-11-26 22:24:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 22:24:04 (GMT) |
commit | 25bc115df9d0e82309852609a83b5ab7f804cdc1 (patch) | |
tree | 6c4232713449b9f3aeccc141d975531a03f4551a /Objects | |
parent | 7f005749b27c7b9108ea24e5c0ff25068910b75c (diff) | |
download | cpython-25bc115df9d0e82309852609a83b5ab7f804cdc1.zip cpython-25bc115df9d0e82309852609a83b5ab7f804cdc1.tar.gz cpython-25bc115df9d0e82309852609a83b5ab7f804cdc1.tar.bz2 |
gh-89682: [doc] reword docstring of __contains__ to clarify that it returns a bool (GH-29043)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b993aa4..a4974a1 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8741,7 +8741,7 @@ static pytype_slotdef slotdefs[] = { SQSLOT(__delitem__, sq_ass_item, slot_sq_ass_item, wrap_sq_delitem, "__delitem__($self, key, /)\n--\n\nDelete self[key]."), SQSLOT(__contains__, sq_contains, slot_sq_contains, wrap_objobjproc, - "__contains__($self, key, /)\n--\n\nReturn key in self."), + "__contains__($self, key, /)\n--\n\nReturn bool(key in self)."), SQSLOT(__iadd__, sq_inplace_concat, NULL, wrap_binaryfunc, "__iadd__($self, value, /)\n--\n\nImplement self+=value."), |