mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix ruff complaints
This commit is contained in:
@@ -62,7 +62,7 @@ import tempfile
|
||||
import zipfile
|
||||
from collections.abc import Generator, Sequence
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, Any, Literal, Optional, Union, overload
|
||||
from typing import TYPE_CHECKING, Literal, Optional, Union, overload
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import ifcopenshell.express.schema_class
|
||||
|
||||
@@ -22,19 +22,15 @@ from __future__ import annotations
|
||||
import functools
|
||||
import importlib
|
||||
import itertools
|
||||
import numbers
|
||||
import operator
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from collections.abc import Callable, Sequence
|
||||
from typing import TYPE_CHECKING, Any, NoReturn, TypeVar, Union, cast, overload
|
||||
from typing import Any, TypeVar, Union
|
||||
|
||||
from . import ifcopenshell_wrapper, settings
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import ifcopenshell
|
||||
|
||||
try:
|
||||
import logging
|
||||
except ImportError:
|
||||
@@ -403,4 +399,4 @@ class entity_instance_mixin:
|
||||
return ifcopenshell_wrapper.get_info_cpp(self.wrapped_data, include_identifier)
|
||||
return self.get_info_py(
|
||||
include_identifier=include_identifier, recursive=recursive, return_type=return_type, ignore=ignore
|
||||
)
|
||||
)
|
||||
|
||||
@@ -22,8 +22,6 @@ import functools
|
||||
import numbers
|
||||
import os
|
||||
import re
|
||||
import types
|
||||
import weakref
|
||||
import zipfile
|
||||
from collections.abc import Callable, Generator
|
||||
from pathlib import Path
|
||||
|
||||
@@ -29,7 +29,6 @@ try:
|
||||
import ifcopenshell.util.schema
|
||||
|
||||
from . import ifcopenshell_wrapper
|
||||
from . import entity_instance
|
||||
from . import file
|
||||
|
||||
class StreamTransformer(Transformer):
|
||||
|
||||
Reference in New Issue
Block a user