mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Sort imports
This commit is contained in:
@@ -44,23 +44,23 @@ Can be used to run validation on IFC file from the command line:
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import functools
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import functools
|
||||
import types
|
||||
import argparse
|
||||
|
||||
from collections import namedtuple
|
||||
from typing import Union, Any, Optional, TYPE_CHECKING
|
||||
from collections.abc import Iterator
|
||||
from logging import Logger, Handler
|
||||
from logging import Handler, Logger
|
||||
from types import EllipsisType
|
||||
from typing import TYPE_CHECKING, Any, Optional, Union
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.express.rule_executor
|
||||
import ifcopenshell.ifcopenshell_wrapper
|
||||
import ifcopenshell.ifcopenshell_wrapper as W
|
||||
import ifcopenshell.express.rule_executor
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import ifcopenshell.simple_spf
|
||||
@@ -311,8 +311,8 @@ def assert_valid(
|
||||
def log_internal_cpp_errors(
|
||||
f: Optional[ifcopenshell.file], filename: str, logger: Union[Logger, json_logger], log_content: Optional[str] = None
|
||||
) -> None:
|
||||
import re
|
||||
import bisect
|
||||
import re
|
||||
|
||||
chr_offset_re = re.compile(r"at offset (\d+)\s*")
|
||||
for_instance_re = re.compile(r"\s*for instance #(\d+)\s*")
|
||||
@@ -775,8 +775,8 @@ class LogDetectionHandler(Handler):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
import logging
|
||||
import sys
|
||||
|
||||
def handle_exception(exc_type, exc_value, exc_traceback):
|
||||
import traceback
|
||||
|
||||
Reference in New Issue
Block a user