Skip to content

Commit d196748

Browse files
authored
PEP 634: Allow keyword patterns for int, str etc. (#1908)
1 parent d635956 commit d196748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep-0634.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ as follows:
489489

490490
- For a number of built-in types (specified below),
491491
a single positional subpattern is accepted which will match
492-
the entire subject; for these types no keyword patterns are accepted.
492+
the entire subject. (Keyword patterns work as for other types here.)
493493
- The equivalent of ``getattr(cls, "__match_args__", ()))`` is called.
494494
- If this raises an exception the exception bubbles up.
495495
- If the returned value is not a tuple, the conversion fails

0 commit comments

Comments
 (0)