Sort imports

This commit is contained in:
Andrej730
2025-12-19 18:53:04 +05:00
parent 29176330e8
commit 13be6ccd45
731 changed files with 2234 additions and 1709 deletions
@@ -16,12 +16,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import functools
import multiprocessing
import operator
import os
import sys
import time
import operator
import functools
import multiprocessing
import ifcopenshell.ifcopenshell_wrapper as W
try:
@@ -33,7 +34,7 @@ except ImportError:
USE_OCCT_HANDLE = True
from collections import defaultdict, OrderedDict
from collections import OrderedDict, defaultdict
from collections.abc import Iterable
try:
@@ -69,11 +70,10 @@ except BaseException:
from OCC.Display.qtDisplay import qtViewer3d
from .main import settings, iterator
from .occ_utils import display_shape
from .. import open as open_ifc_file
from .. import version as ifcopenshell_version
from .main import iterator, settings
from .occ_utils import display_shape
if ifcopenshell_version < "0.6":
# not yet ported
@@ -16,11 +16,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import logging
import os
import sys
import logging
from code import InteractiveConsole
from PyQt5 import QtCore, QtGui, QtWidgets
try:
@@ -29,14 +29,14 @@ except BaseException:
QtWidgets = QtGui
try:
from pyqode.core.panels import CheckerPanel
from pyqode.core import api
from pyqode.core import modes
from pyqode.core import panels
from pyqode.core import api, modes, panels
from pyqode.core.api import CodeEdit, ColorScheme
from pyqode.python.modes import PyAutoIndentMode, PythonSH
from pyqode.core.panels import CheckerPanel
from pyqode.python import modes as pymodes
from pyqode.python import panels as pypanels
from pyqode.python import widgets
from pyqode.python.backend import server
from pyqode.python import modes as pymodes, panels as pypanels, widgets
from pyqode.python.modes import PyAutoIndentMode, PythonSH
from pyqode.python.widgets import PyInteractiveConsole
has_pyqode = True
@@ -18,18 +18,17 @@
from __future__ import annotations
import operator
import os
import sys
import operator
from .. import open, ifcopenshell_wrapper
from ..file import file
from ..entity_instance import entity_instance
from . import has_occ
from typing import TypeVar, Union, Optional, Any, Literal, overload, TYPE_CHECKING, cast
from collections.abc import Generator, Iterable
from typing import TYPE_CHECKING, Any, Literal, Optional, TypeVar, Union, cast, overload
from .. import ifcopenshell_wrapper, open
from ..entity_instance import entity_instance
from ..file import file
from . import has_occ
if TYPE_CHECKING:
from OCC.Core import TopoDS
@@ -18,24 +18,25 @@
from __future__ import annotations
import inspect
import random
import operator
import warnings
import ifcopenshell.ifcopenshell_wrapper as ifcopenshell_wrapper
from typing import NamedTuple, Any, Union
from typing_extensions import assert_never
import inspect
import operator
import random
import warnings
from collections.abc import Iterable
from typing import Any, NamedTuple, Union
import OCC
from typing_extensions import assert_never
import ifcopenshell.ifcopenshell_wrapper as ifcopenshell_wrapper
try:
from OCC.Core import V3d, TopoDS, gp, AIS, Quantity, BRepTools, Graphic3d
from OCC.Core import AIS, BRepTools, Graphic3d, Quantity, TopoDS, V3d, gp
USE_OCCT_HANDLE = False
except ImportError:
from OCC import V3d, TopoDS, gp, AIS, Quantity, BRepTools, Graphic3d
from OCC import AIS, BRepTools, Graphic3d, Quantity, TopoDS, V3d, gp
USE_OCCT_HANDLE = True
@@ -1,6 +1,6 @@
import sys
from typing import Optional, IO
from itertools import accumulate
from typing import IO, Optional
from . import ifcopenshell_wrapper