mark/structures: use class-based NamedTuple syntax
Should hopefully work now in Python>=3.7.
This commit is contained in:
parent
77a38a3b75
commit
20c2c30ff2
|
@ -72,16 +72,11 @@ def get_empty_parameterset_mark(
|
||||||
return mark
|
return mark
|
||||||
|
|
||||||
|
|
||||||
class ParameterSet(
|
class ParameterSet(NamedTuple):
|
||||||
NamedTuple(
|
values: Sequence[Union[object, NotSetType]]
|
||||||
"ParameterSet",
|
marks: Collection[Union["MarkDecorator", "Mark"]]
|
||||||
[
|
id: Optional[str]
|
||||||
("values", Sequence[Union[object, NotSetType]]),
|
|
||||||
("marks", Collection[Union["MarkDecorator", "Mark"]]),
|
|
||||||
("id", Optional[str]),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
):
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def param(
|
def param(
|
||||||
cls,
|
cls,
|
||||||
|
|
Loading…
Reference in New Issue