ifcopenshell-python - clean up unused imports

This commit is contained in:
Andrej730
2026-01-16 16:55:56 +05:00
parent 233ad63bca
commit dfc91e6639
156 changed files with 22 additions and 233 deletions
@@ -40,7 +40,7 @@ def _has_occ():
pass
try:
import OCC.BRepTools
import OCC.BRepTools # noqa: F401
return True
except ImportError:
@@ -52,6 +52,6 @@ def _has_occ():
has_occ = _has_occ()
if has_occ:
from . import occ_utils as utils
from . import occ_utils as utils # noqa: F401
from .main import *
@@ -18,7 +18,6 @@
import functools
import multiprocessing
import operator
import os
import sys
import time
@@ -26,11 +25,10 @@ import time
import ifcopenshell.ifcopenshell_wrapper as W
try:
from OCC.Core import AIS
from OCC.Core import AIS # noqa: F401
USE_OCCT_HANDLE = False
except ImportError:
from OCC import AIS
USE_OCCT_HANDLE = True
@@ -56,7 +54,6 @@ from .code_editor_pane import code_edit
try:
from OCC.Display.pyqt5Display import qtViewer3d
except BaseException:
import OCC.Display
try:
import OCC.Display.backend
@@ -17,7 +17,6 @@
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import logging
import os
import sys
from code import InteractiveConsole
@@ -30,14 +29,11 @@ except BaseException:
try:
from pyqode.core import api, modes, panels
from pyqode.core.api import CodeEdit, ColorScheme
from pyqode.core.panels import CheckerPanel
from pyqode.core.api import CodeEdit
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.modes import PyAutoIndentMode, PythonSH
from pyqode.python.widgets import PyInteractiveConsole
from pyqode.python.modes import PythonSH
has_pyqode = True
except BaseException:
@@ -19,9 +19,6 @@
from __future__ import annotations
import operator
import os
import sys
from collections.abc import Generator, Iterable
from typing import TYPE_CHECKING, Any, Literal, Optional, TypeVar, Union, cast, overload
@@ -24,7 +24,7 @@ import operator
import random
import warnings
from collections.abc import Iterable
from typing import Any, NamedTuple, Union
from typing import NamedTuple, Union
import OCC
from typing_extensions import assert_never