From e0509d8dd0206f77a525d03355f84f8e4d7c0749 Mon Sep 17 00:00:00 2001 From: faissaloux Date: Thu, 11 Jul 2024 16:48:28 +0100 Subject: [PATCH] relative imports --- termspark/painter/mode_manager.py | 6 +++--- termspark/termspark.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/termspark/painter/mode_manager.py b/termspark/painter/mode_manager.py index 007ff42..2a7e9f1 100644 --- a/termspark/painter/mode_manager.py +++ b/termspark/painter/mode_manager.py @@ -1,8 +1,8 @@ from typing import Union -from termspark.painter.modes.hex import HEX -from termspark.painter.modes.name import Name -from termspark.painter.modes.rgb import RGB +from .modes.hex import HEX +from .modes.name import Name +from .modes.rgb import RGB class ModeManager: diff --git a/termspark/termspark.py b/termspark/termspark.py index 864dece..23298a3 100644 --- a/termspark/termspark.py +++ b/termspark/termspark.py @@ -1,8 +1,6 @@ import os from typing import Dict, Final, List, Optional, Sequence, Union -from termspark.line.line import Line - from .exceptions.combination_error import CombinationError from .exceptions.empty_error import EmptyError from .exceptions.len_not_supported_error import LenNotSupportedError @@ -11,6 +9,7 @@ MultiplePositionsNotSupportedError, ) from .hyperlink.hyperlink import EncodedHyperlink, Hyperlink +from .line.line import Line from .separator.separator import Separator from .structurer.structurer import Structurer from .styler.styler import Styler