diff --git a/BaseClasses.py b/BaseClasses.py index 88857f803212..c42cd26e5b58 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -1155,6 +1155,10 @@ def trap(self) -> bool: def flags(self) -> int: return self.classification.as_flag() + @property + def is_event(self) -> bool: + return self.code is None + def __eq__(self, other: object) -> bool: if not isinstance(other, Item): return NotImplemented