diff --git a/miscplot/variability.py b/miscplot/variability.py index a1dc99e..aff667d 100644 --- a/miscplot/variability.py +++ b/miscplot/variability.py @@ -1,10 +1,7 @@ -from typing import Sequence, Callable, Any -from pathlib import Path +from typing import Sequence, Callable, Any, TYPE_CHECKING import threading import textwrap -from PyQt6 import QtCore - import numpy from numpy.typing import NDArray import polars @@ -14,6 +11,10 @@ from matplotlib.figure import Figure from matplotlib.axes import Axes +if TYPE_CHECKING: + import pandas + + def twrap(text: str, **kwargs) -> str: kwargs.setdefault('width', 15) intxt = text.replace('_', '-') diff --git a/miscplot/wmap.py b/miscplot/wmap.py index d371812..58ce050 100644 --- a/miscplot/wmap.py +++ b/miscplot/wmap.py @@ -1,7 +1,5 @@ from typing import Any, Callable -from PyQt6 import QtCore - from matplotlib.figure import Figure from matplotlib.axes import Axes from matplotlib import pyplot