Skip to content
Snippets Groups Projects
Unverified Commit b6fb7794 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

GH-96359: Fix docs that claim int(0|1) doesn't match False (GH-96361)


(cherry picked from commit 3d3a86ed)

Co-authored-by: default avatarJonathan Oberländer <github@l3vi.de>
parent f6f8acb6
Branches
Tags
No related merge requests found
......@@ -1074,7 +1074,7 @@ subject value:
These classes accept a single positional argument, and the pattern there is matched
against the whole object rather than an attribute. For example ``int(0|1)`` matches
the value ``0``, but not the values ``0.0`` or ``False``.
the value ``0``, but not the value ``0.0``.
In simple terms ``CLS(P1, attr=P2)`` matches only if the following happens:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment