mirror of https://github.com/python/cpython
gh-89682: [doc] reword docstring of __contains__ to clarify that it returns a bool (GH-29043)
This commit is contained in:
parent
7f005749b2
commit
25bc115df9
|
@ -0,0 +1 @@
|
||||||
|
Reworded docstring of the default ``__contains__`` to clarify that it returns a :class:`bool`.
|
|
@ -8741,7 +8741,7 @@ static pytype_slotdef slotdefs[] = {
|
||||||
SQSLOT(__delitem__, sq_ass_item, slot_sq_ass_item, wrap_sq_delitem,
|
SQSLOT(__delitem__, sq_ass_item, slot_sq_ass_item, wrap_sq_delitem,
|
||||||
"__delitem__($self, key, /)\n--\n\nDelete self[key]."),
|
"__delitem__($self, key, /)\n--\n\nDelete self[key]."),
|
||||||
SQSLOT(__contains__, sq_contains, slot_sq_contains, wrap_objobjproc,
|
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,
|
SQSLOT(__iadd__, sq_inplace_concat, NULL,
|
||||||
wrap_binaryfunc,
|
wrap_binaryfunc,
|
||||||
"__iadd__($self, value, /)\n--\n\nImplement self+=value."),
|
"__iadd__($self, value, /)\n--\n\nImplement self+=value."),
|
||||||
|
|
Loading…
Reference in New Issue