Skip to content

Commit 3e648f8

Browse files
bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617) --> https://bugs.python.org/issue28617 <!-- /issue-number --> (cherry picked from commit 08bcf64) Co-authored-by: wim glenn <[email protected]>
1 parent 3235fac commit 3e648f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎Doc/library/stdtypes.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ exception.
197197
operator: not in
198198

199199
Two more operations with the same syntactic priority, :keyword:`in` and
200-
:keyword:`not in`, are supported only by sequence types (below).
201-
200+
:keyword:`not in`, are supported by types that are :term:`iterable` or
201+
implement the :meth:`__contains__` method.
202202

203203
.. _typesnumeric:
204204

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed info in the stdtypes docs concerning the types that support membership
2+
tests.

0 commit comments

Comments
 (0)