Skip to content

Commit 5a3160e

Browse files
committed
black .
1 parent 80a9df8 commit 5a3160e

File tree

4 files changed

+19
-57
lines changed

4 files changed

+19
-57
lines changed

src/bonsai/bonsai/bim/module/clash/operator.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,9 @@ class ExecuteIfcClash(bpy.types.Operator, ExportHelper):
201201
"ALT+click to run a quick clash without selecting a file to save."
202202
)
203203

204-
filter_glob: bpy.props.StringProperty(
205-
default="*.bcf;*.json", options={"HIDDEN"}
206-
)
207-
format: bpy.props.EnumProperty(
208-
name="Format", items=[(i, i, "") for i in ("bcf", "json")]
209-
)
210-
filepath: bpy.props.StringProperty(
211-
subtype="FILE_PATH", options={"SKIP_SAVE"}
212-
)
204+
filter_glob: bpy.props.StringProperty(default="*.bcf;*.json", options={"HIDDEN"})
205+
format: bpy.props.EnumProperty(name="Format", items=[(i, i, "") for i in ("bcf", "json")])
206+
filepath: bpy.props.StringProperty(subtype="FILE_PATH", options={"SKIP_SAVE"})
213207
quick_clash: bpy.props.BoolProperty(
214208
options={"SKIP_SAVE"},
215209
)

src/bonsai/bonsai/bim/module/drawing/operator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3640,9 +3640,7 @@ class ToggleTargetView(bpy.types.Operator):
36403640
default=False,
36413641
options={"SKIP_SAVE"},
36423642
)
3643-
option: bpy.props.EnumProperty(
3644-
items=[(i, i, "") for i in get_args(ToggleOption)]
3645-
)
3643+
option: bpy.props.EnumProperty(items=[(i, i, "") for i in get_args(ToggleOption)])
36463644

36473645
if TYPE_CHECKING:
36483646
target_view: str

src/bonsai/bonsai/bim/module/misc/operator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,7 @@ class MoveQuickFavoritesItem(bpy.types.Operator):
453453
bl_label = "Move Quick Favorites Item"
454454
bl_options = {"REGISTER", "UNDO"}
455455
index: bpy.props.IntProperty()
456-
direction: bpy.props.EnumProperty(
457-
items=[("UP", "Up", ""), ("DOWN", "Down", "")]
458-
)
456+
direction: bpy.props.EnumProperty(items=[("UP", "Up", ""), ("DOWN", "Down", "")])
459457

460458
if TYPE_CHECKING:
461459
index: int

src/bonsai/bonsai/bim/module/project/operator.py

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ class NewProject(bpy.types.Operator):
8686
bl_label = "New Project"
8787
bl_options = {"REGISTER", "UNDO"}
8888
bl_description = "Start a new IFC project in a fresh session"
89-
preset: bpy.props.EnumProperty(
90-
items=[(i, i, "") for i in get_args(PresetType)]
91-
)
89+
preset: bpy.props.EnumProperty(items=[(i, i, "") for i in get_args(PresetType)])
9290

9391
if TYPE_CHECKING:
9492
preset: PresetType
@@ -178,13 +176,9 @@ class SelectLibraryFile(bpy.types.Operator, IFCFileSelector, ImportHelper):
178176
bl_description = (
179177
"Select an IFC file that can be used as a library.\n\nALT+click to reload the current loaded library file."
180178
)
181-
filter_glob: bpy.props.StringProperty(
182-
default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"}
183-
)
179+
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml", options={"HIDDEN"})
184180
append_all: bpy.props.BoolProperty(default=False)
185-
use_relative_path: bpy.props.BoolProperty(
186-
name="Use Relative Path", default=False
187-
)
181+
use_relative_path: bpy.props.BoolProperty(name="Use Relative Path", default=False)
188182

189183
if TYPE_CHECKING:
190184
filter_glob: str
@@ -602,9 +596,7 @@ class AppendLibraryElement(bpy.types.Operator, tool.Ifc.Operator):
602596
)
603597
definition: bpy.props.IntProperty()
604598
prop_index: bpy.props.IntProperty()
605-
assume_unique_by_name: bpy.props.BoolProperty(
606-
name="Assume Unique By Name", default=True, options={"SKIP_SAVE"}
607-
)
599+
assume_unique_by_name: bpy.props.BoolProperty(name="Assume Unique By Name", default=True, options={"SKIP_SAVE"})
608600

609601
if TYPE_CHECKING:
610602
definition: int
@@ -959,12 +951,8 @@ class LoadProject(bpy.types.Operator, IFCFileSelector, ImportHelper):
959951
bl_label = "Load Project"
960952
bl_options = {"REGISTER", "UNDO"}
961953
bl_description = "Load an existing IFC project"
962-
filepath: bpy.props.StringProperty(
963-
subtype="FILE_PATH", options={"SKIP_SAVE"}
964-
)
965-
filter_glob: bpy.props.StringProperty(
966-
default="*.ifc;*.ifczip;*.ifcxml;*.ifcsqlite", options={"HIDDEN"}
967-
)
954+
filepath: bpy.props.StringProperty(subtype="FILE_PATH", options={"SKIP_SAVE"})
955+
filter_glob: bpy.props.StringProperty(default="*.ifc;*.ifczip;*.ifcxml;*.ifcsqlite", options={"HIDDEN"})
968956
is_advanced: bpy.props.BoolProperty(
969957
name="Enable Advanced Mode",
970958
description="Load IFC file with advanced settings. Checking this option will skip loading IFC file and will open advanced load settings",
@@ -988,9 +976,7 @@ class LoadProject(bpy.types.Operator, IFCFileSelector, ImportHelper):
988976
),
989977
default=False,
990978
)
991-
use_detailed_tooltip: bpy.props.BoolProperty(
992-
default=False, options={"HIDDEN"}
993-
)
979+
use_detailed_tooltip: bpy.props.BoolProperty(default=False, options={"HIDDEN"})
994980
filename_ext = ".ifc"
995981

996982
if TYPE_CHECKING:
@@ -1882,21 +1868,11 @@ class ExportIFC(bpy.types.Operator, ExportHelper):
18821868
bl_options = {"REGISTER", "UNDO"}
18831869
filename_ext = ".ifc"
18841870
supported_filexts = (".ifc", ".ifczip", ".ifcjson")
1885-
filter_glob: bpy.props.StringProperty(
1886-
default=";".join(f"*{ext}" for ext in supported_filexts), options={"HIDDEN"}
1887-
)
1888-
json_version: bpy.props.EnumProperty(
1889-
items=[("4", "4", ""), ("5a", "5a", "")], name="IFC JSON Version"
1890-
)
1891-
json_compact: bpy.props.BoolProperty(
1892-
name="Export Compact IFCJSON", default=False
1893-
)
1894-
should_save_as: bpy.props.BoolProperty(
1895-
name="Should Save As", default=False, options={"HIDDEN"}
1896-
)
1897-
use_relative_path: bpy.props.BoolProperty(
1898-
name="Use Relative Path", default=False
1899-
)
1871+
filter_glob: bpy.props.StringProperty(default=";".join(f"*{ext}" for ext in supported_filexts), options={"HIDDEN"})
1872+
json_version: bpy.props.EnumProperty(items=[("4", "4", ""), ("5a", "5a", "")], name="IFC JSON Version")
1873+
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
1874+
should_save_as: bpy.props.BoolProperty(name="Should Save As", default=False, options={"HIDDEN"})
1875+
use_relative_path: bpy.props.BoolProperty(name="Use Relative Path", default=False)
19001876

19011877
if TYPE_CHECKING:
19021878
filter_glob: str
@@ -2918,12 +2894,8 @@ class IFCFileHandlerOperator(bpy.types.Operator):
29182894
bl_label = "Import .ifc file"
29192895
bl_options = {"REGISTER", "UNDO", "INTERNAL"}
29202896

2921-
directory: bpy.props.StringProperty(
2922-
subtype="FILE_PATH", options={"SKIP_SAVE", "HIDDEN"}
2923-
)
2924-
files: bpy.props.CollectionProperty(
2925-
type=bpy.types.OperatorFileListElement, options={"SKIP_SAVE", "HIDDEN"}
2926-
)
2897+
directory: bpy.props.StringProperty(subtype="FILE_PATH", options={"SKIP_SAVE", "HIDDEN"})
2898+
files: bpy.props.CollectionProperty(type=bpy.types.OperatorFileListElement, options={"SKIP_SAVE", "HIDDEN"})
29272899

29282900
if TYPE_CHECKING:
29292901
directory: str

0 commit comments

Comments
 (0)