Skip to content

Commit 3d3a86e

Browse files
authored
GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)
1 parent 023c51d commit 3d3a86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ subject value:
11221122

11231123
These classes accept a single positional argument, and the pattern there is matched
11241124
against the whole object rather than an attribute. For example ``int(0|1)`` matches
1125-
the value ``0``, but not the values ``0.0`` or ``False``.
1125+
the value ``0``, but not the value ``0.0``.
11261126

11271127
In simple terms ``CLS(P1, attr=P2)`` matches only if the following happens:
11281128

0 commit comments

Comments
 (0)