mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 18:17:08 +07:00
GitOrigin-RevId: 0e35bd5d50e2d6b544cbd4467d184b6be21b7574
11 lines
258 B
Python
11 lines
258 B
Python
class Point:
|
|
__match_args__ = ("x", "y")
|
|
def __init__(self, x, y):
|
|
self.x = x
|
|
self.y = y
|
|
|
|
def f(p):
|
|
match p:
|
|
case Point(a, b, <warning descr="Too many positional patterns, expected 2"><caret>c</warning>):
|
|
pass
|