mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix class pattern docs to refer to class patterns (GH-28849)
This commit is contained in:
parent
532403e7c6
commit
0bcc5ade9b
1 changed files with 1 additions and 1 deletions
|
@ -1017,7 +1017,7 @@ A class pattern represents a class and its positional and keyword arguments
|
||||||
|
|
||||||
The same keyword should not be repeated in class patterns.
|
The same keyword should not be repeated in class patterns.
|
||||||
|
|
||||||
The following is the logical flow for matching a mapping pattern against a
|
The following is the logical flow for matching a class pattern against a
|
||||||
subject value:
|
subject value:
|
||||||
|
|
||||||
#. If ``name_or_attr`` is not an instance of the builtin :class:`type` , raise
|
#. If ``name_or_attr`` is not an instance of the builtin :class:`type` , raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue