Make name the first argument to Pattern() init
Major incompatibility with previous versions!!
This commit is contained in:
parent
a154555902
commit
28084dfe45
1 changed files with 4 additions and 4 deletions
|
|
@ -40,10 +40,10 @@ class Pattern:
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
shapes: List[Shape]=(),
|
name: str = '',
|
||||||
labels: List[Label]=(),
|
shapes: List[Shape] = (),
|
||||||
subpatterns: List[SubPattern]=(),
|
labels: List[Label] = (),
|
||||||
name: str='',
|
subpatterns: List[SubPattern] = (),
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Basic init; arguments get assigned to member variables.
|
Basic init; arguments get assigned to member variables.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue