Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions labellines/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import warnings
from typing import List, Optional, Union
from typing import Optional, Union

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -92,7 +92,7 @@ def labelLine(


def labelLines(
lines: Optional[List[Line2D]] = None,
lines: Optional[list[Line2D]] = None,
align: Optional[bool] = None,
xvals: Optional[Union[tuple[float, float], list[float]]] = None,
drop_label: bool = False,
Expand Down
4 changes: 1 addition & 3 deletions labellines/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from typing import Tuple

import numpy as np
from matplotlib.lines import Line2D


def normalize_xydata(line: Line2D) -> Tuple[np.ndarray, np.ndarray]:
def normalize_xydata(line: Line2D) -> tuple[np.ndarray, np.ndarray]:
"""Make sure datetime values are properly converted to floats and convert
into data coordinates."""
# Convert the data into the data coordinates
Expand Down
Loading