From c831f91c6c41bf5f9b5dc02fc8a275a0804f41dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= Date: Mon, 28 Jun 2021 13:43:55 -0500 Subject: [PATCH] Use enum.unique in _OpClass to prevent accidents --- arraycontext/container/arithmetic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/arraycontext/container/arithmetic.py b/arraycontext/container/arithmetic.py index 52c87d7..9a63670 100644 --- a/arraycontext/container/arithmetic.py +++ b/arraycontext/container/arithmetic.py @@ -41,6 +41,7 @@ import numpy as np T = TypeVar("T") +@enum.unique class _OpClass(enum.Enum): ARITHMETIC = enum.auto() MATMUL = enum.auto() -- GitLab