mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-15 13:48:09 +00:00
Fix upstream ci-lint failures on this branch
- autosave.py: black formatting (blank line) and ruff's
collections.abc.Callable import fix.
- project/__init__.py, tool/__init__.py: ruff import-sort fixes. The
autosave import in tool/__init__.py is deliberately kept last (must
come after tool.drawing, per its existing comment) via `# isort: skip`
rather than letting ruff move it, which would reintroduce that bug.
Generated with the assistance of an AI coding tool.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit c0d2c2ea24)
This commit is contained in:
committed by
Dion Moult
parent
9100b327bf
commit
c2133e324c
@@ -19,6 +19,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
import bonsai.tool as tool
|
import bonsai.tool as tool
|
||||||
|
|
||||||
from . import decorator, gizmo, operator, prop, ui, workspace
|
from . import decorator, gizmo, operator, prop, ui, workspace
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
|
|||||||
@@ -82,4 +82,4 @@ from bonsai.tool.wall import Wall
|
|||||||
from bonsai.tool.web import Web
|
from bonsai.tool.web import Web
|
||||||
|
|
||||||
# Have to move after import of tool.drawing
|
# Have to move after import of tool.drawing
|
||||||
from bonsai.tool.autosave import Autosave
|
from bonsai.tool.autosave import Autosave # isort: skip
|
||||||
|
|||||||
@@ -23,8 +23,9 @@ from __future__ import annotations
|
|||||||
import atexit
|
import atexit
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
from collections.abc import Callable
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Callable, Union
|
from typing import Union
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
@@ -32,7 +33,6 @@ import bonsai.tool as tool
|
|||||||
from bonsai.bim import export_ifc
|
from bonsai.bim import export_ifc
|
||||||
from bonsai.bim.module.model import preview_base
|
from bonsai.bim.module.model import preview_base
|
||||||
|
|
||||||
|
|
||||||
AUTOSAVING_SUFFIX = "_autosaving.ifc"
|
AUTOSAVING_SUFFIX = "_autosaving.ifc"
|
||||||
AUTOSAVED_SUFFIX = "_autosaved.ifc"
|
AUTOSAVED_SUFFIX = "_autosaved.ifc"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user