mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Express rules: allow indexing in sets
This commit is contained in:
@@ -648,7 +648,9 @@ class express_set(set):
|
||||
__radd__ = __add__
|
||||
def __repr__(self):
|
||||
return repr(set(self))
|
||||
|
||||
def __getitem__(self, k):
|
||||
# @todo this is obviously not stable, but should be good enough?
|
||||
return list(self)[k]
|
||||
|
||||
def typeof(inst):
|
||||
if not inst:
|
||||
|
||||
Reference in New Issue
Block a user