mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
entity_instance: comparison operators to support non-entity types
This commit is contained in:
@@ -208,6 +208,7 @@ class entity_instance_mixin:
|
||||
|
||||
return value
|
||||
|
||||
# TODO: dead code? Since overridden by `__eq__` defined on `entity_instance`.
|
||||
def __eq__(self, other: entity_instance_mixin) -> bool:
|
||||
if not isinstance(other, entity_instance_mixin):
|
||||
if not self.is_entity():
|
||||
|
||||
Reference in New Issue
Block a user