mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
refactor: Update code comments and docstrings
This commit is contained in:
committed by
Dion Moult
parent
f83a7ac730
commit
228bbc30ad
@@ -136,7 +136,8 @@ class UpdateIfcPatchArguments(bpy.types.Operator):
|
||||
if new_attr.data_type == "enum":
|
||||
new_attr.enum_items = json.dumps(arg_info.get("enum_items", []))
|
||||
new_attr.enum_value = arg_info.get("default", new_attr.get_value_default())
|
||||
continue # Temporary workaround, because the Argument class resets the type to "string" when calling `set_value`
|
||||
continue
|
||||
|
||||
new_attr.set_value(arg_info.get("default", new_attr.get_value_default()))
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class Patcher:
|
||||
Allowed imperial units include INCH, FOOT, MILE.
|
||||
|
||||
:param unit: The name of the desired unit, defaults to "METER"
|
||||
:type unit: str
|
||||
:type unit: LengthUnit
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user