From 3da6f85d149eff7036eb7c78b284d2ecdee3703f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 28 Aug 2022 18:39:37 -0500 Subject: [PATCH] matchpy.PymbolicOp: Add variable_name abstractproperty --- pymbolic/interop/matchpy/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymbolic/interop/matchpy/__init__.py b/pymbolic/interop/matchpy/__init__.py index e355695..b506df9 100644 --- a/pymbolic/interop/matchpy/__init__.py +++ b/pymbolic/interop/matchpy/__init__.py @@ -124,6 +124,10 @@ class PymbolicOp(abc.ABC, Operation): """ unpacked_args_to_init: ClassVar[bool] = True + @abc.abstractproperty + def variable_name(self): + pass + @property def operands(self) -> Tuple[Expression]: return tuple(getattr(self, field.name) -- GitLab