From f5ef2d8939cb7fa4df7a9aa77c94f387fc4a7a24 Mon Sep 17 00:00:00 2001 From: Daniel Bauer <daniel.j.bauer@fau.de> Date: Thu, 28 Mar 2024 11:34:51 +0100 Subject: [PATCH] fix lint and static type check --- src/pystencils/backend/symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils/backend/symbols.py b/src/pystencils/backend/symbols.py index 065a3c8dc..b54ee1db4 100644 --- a/src/pystencils/backend/symbols.py +++ b/src/pystencils/backend/symbols.py @@ -49,7 +49,7 @@ class PsSymbol: def __eq__(self, other: object) -> bool: return ( - type(self) == type(other) + isinstance(other, PsSymbol) and self._name == other._name and self._dtype == other._dtype ) -- GitLab