mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Black
This commit is contained in:
@@ -998,8 +998,17 @@ class Restriction:
|
||||
for constraint, value in self.options.items():
|
||||
value = [value] if not isinstance(value, list) else value
|
||||
for v in value:
|
||||
if constraint in ["length", "minLength", "maxLength", "maxExclusive", "maxInclusive",
|
||||
"minExclusive", "minInclusive", "totalDigits", "fractionDigits"]:
|
||||
if constraint in [
|
||||
"length",
|
||||
"minLength",
|
||||
"maxLength",
|
||||
"maxExclusive",
|
||||
"maxInclusive",
|
||||
"minExclusive",
|
||||
"minInclusive",
|
||||
"totalDigits",
|
||||
"fractionDigits",
|
||||
]:
|
||||
value_dict = {"@value": v}
|
||||
else:
|
||||
value_dict = {"@value": str(v)}
|
||||
|
||||
Reference in New Issue
Block a user