Make name the first argument to Pattern() init

Major incompatibility with previous versions!!
This commit is contained in:
Jan Petykiewicz 2019-05-17 00:42:55 -07:00
parent a154555902
commit 28084dfe45

View File

@ -40,10 +40,10 @@ class Pattern:
name: str
def __init__(self,
shapes: List[Shape]=(),
labels: List[Label]=(),
subpatterns: List[SubPattern]=(),
name: str='',
name: str = '',
shapes: List[Shape] = (),
labels: List[Label] = (),
subpatterns: List[SubPattern] = (),
):
"""
Basic init; arguments get assigned to member variables.