mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix typo in __match_args__ doc (GH-99785)
A opy of GH-98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.
(cherry picked from commit a86d854522)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
aabe83124a
commit
fae745ed14
1 changed files with 1 additions and 1 deletions
|
|
@ -2752,7 +2752,7 @@ Customizing positional arguments in class pattern matching
|
|||
|
||||
When using a class name in a pattern, positional arguments in the pattern are not
|
||||
allowed by default, i.e. ``case MyClass(x, y)`` is typically invalid without special
|
||||
support in ``MyClass``. To be able to use that kind of patterns, the class needs to
|
||||
support in ``MyClass``. To be able to use that kind of pattern, the class needs to
|
||||
define a *__match_args__* attribute.
|
||||
|
||||
.. data:: object.__match_args__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue