Skip to content

Commit

Permalink
sort/cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Mar 20, 2024
1 parent d18e72c commit ecf80b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Libraries/Utility/src/utility/error_handling.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from __future__ import annotations

from contextvars import ContextVar
import inspect
import os
import sys
import traceback
import types

from contextvars import ContextVar
from pathlib import Path
from typing import TYPE_CHECKING, Any, TypeVar

Expand Down
4 changes: 2 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/editor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

import os

from abc import abstractmethod
from typing import TYPE_CHECKING, Callable

Expand Down Expand Up @@ -29,6 +27,8 @@
from utility.system.path import Path

if TYPE_CHECKING:
import os

from PyQt5.QtWidgets import QWidget

from pykotor.common.language import LocalizedString
Expand Down
4 changes: 2 additions & 2 deletions Tools/HolocronToolset/src/toolset/gui/editors/are.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from copy import deepcopy
from typing import TYPE_CHECKING

from PyQt5.QtGui import QColor, QImage, QPixmap
Expand All @@ -13,7 +12,7 @@
from pykotor.resource.formats.bwm import read_bwm
from pykotor.resource.formats.gff import write_gff
from pykotor.resource.formats.lyt import read_lyt
from pykotor.resource.generics.are import ARE, ARENorthAxis, ARERoom, AREWindPower, dismantle_are, read_are
from pykotor.resource.generics.are import ARE, ARENorthAxis, AREWindPower, dismantle_are, read_are
from pykotor.resource.type import ResourceType
from toolset.data.installation import HTInstallation
from toolset.gui.dialogs.edit.locstring import LocalizedStringDialog
Expand All @@ -29,6 +28,7 @@
from pykotor.resource.formats.lyt.lyt_data import LYT
from pykotor.resource.formats.tpc.tpc_data import TPC
from pykotor.resource.formats.twoda.twoda_data import TwoDA
from pykotor.resource.generics.are import ARERoom
from toolset.gui.widgets.long_spinbox import LongSpinBox


Expand Down
5 changes: 0 additions & 5 deletions Tools/HolocronToolset/src/toolset/gui/editors/nss.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
from PyQt5.QtWidgets import QListWidgetItem, QMessageBox, QPlainTextEdit, QShortcut, QTextEdit, QWidget

from pykotor.common.scriptdefs import KOTOR_CONSTANTS, KOTOR_FUNCTIONS, TSL_CONSTANTS, TSL_FUNCTIONS
from pykotor.common.stream import BinaryWriter
from pykotor.resource.formats.erf import read_erf, write_erf
from pykotor.resource.formats.rim import read_rim, write_rim
from pykotor.resource.type import ResourceType
from pykotor.tools.misc import is_any_erf_type_file, is_bif_file, is_rim_file
from toolset.gui.editor import Editor
Expand All @@ -41,8 +38,6 @@
)

from pykotor.common.script import ScriptConstant, ScriptFunction
from pykotor.resource.formats.erf import ERF
from pykotor.resource.formats.rim import RIM
from toolset.data.installation import HTInstallation


Expand Down

0 comments on commit ecf80b6

Please sign in to comment.