From 74fa3774503b3881f1c0e02d38351f061c8f6e4c Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 8 Mar 2026 09:47:50 -0700 Subject: [PATCH] [repetition.Arbitrary] fix equality check --- masque/repetition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/repetition.py b/masque/repetition.py index a774f7e..20ec0a3 100644 --- a/masque/repetition.py +++ b/masque/repetition.py @@ -350,7 +350,7 @@ class Arbitrary(Repetition): return (f'') def __eq__(self, other: Any) -> bool: - if not type(other) is not type(self): + if type(other) is not type(self): return False return numpy.array_equal(self.displacements, other.displacements)