File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ subject value:
1030
1030
1031
1031
For a number of built-in types (specified below), a single positional
1032
1032
subpattern is accepted which will match the entire subject; for these types
1033
- no keyword patterns are accepted .
1033
+ keyword patterns also work as for other types .
1034
1034
1035
1035
If only keyword patterns are present, they are processed as follows,
1036
1036
one by one:
@@ -1057,7 +1057,7 @@ subject value:
1057
1057
1058
1058
* If this raises an exception, the exception bubbles up.
1059
1059
1060
- * If the returned value is not a list or tuple, the conversion fails and
1060
+ * If the returned value is not a tuple, the conversion fails and
1061
1061
:exc: `TypeError ` is raised.
1062
1062
1063
1063
* If there are more positional patterns than ``len(cls.__match_args__) ``,
Original file line number Diff line number Diff line change @@ -2565,7 +2565,7 @@ define a *__match_args__* attribute.
2565
2565
2566
2566
.. data :: object.__match_args__
2567
2567
2568
- This class variable can be assigned a tuple or list of strings. When this class is
2568
+ This class variable can be assigned a tuple of strings. When this class is
2569
2569
used in a class pattern with positional arguments, each positional argument will
2570
2570
be converted into a keyword argument, using the corresponding value in
2571
2571
*__match_args__ * as the keyword. The absence of this attribute is equivalent to
You can’t perform that action at this time.
0 commit comments