mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
#2685 also implement __mul__ on express_set
This commit is contained in:
@@ -634,8 +634,9 @@ def usedin(inst, ref_name):
|
|||||||
|
|
||||||
|
|
||||||
class express_set(set):
|
class express_set(set):
|
||||||
def __rmul__(self, other):
|
def __mul__(self, other):
|
||||||
return express_set(set(other) & self)
|
return express_set(set(other) & self)
|
||||||
|
__rmul__ = __mul__
|
||||||
def __add__(self, other):
|
def __add__(self, other):
|
||||||
def make_list(v):
|
def make_list(v):
|
||||||
# Comply with 12.6.3 Union operator
|
# Comply with 12.6.3 Union operator
|
||||||
|
|||||||
Reference in New Issue
Block a user