Skip to content

Commit 9e87853

Browse files
authored
Merge pull request #203 from cphyc/bump-version
Fix linting
2 parents 19020d7 + a442746 commit 9e87853

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

labellines/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import warnings
2-
from typing import List, Optional, Union
2+
from typing import Optional, Union
33

44
import matplotlib.pyplot as plt
55
import numpy as np
@@ -92,7 +92,7 @@ def labelLine(
9292

9393

9494
def labelLines(
95-
lines: Optional[List[Line2D]] = None,
95+
lines: Optional[list[Line2D]] = None,
9696
align: Optional[bool] = None,
9797
xvals: Optional[Union[tuple[float, float], list[float]]] = None,
9898
drop_label: bool = False,

labellines/utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from typing import Tuple
2-
31
import numpy as np
42
from matplotlib.lines import Line2D
53

64

7-
def normalize_xydata(line: Line2D) -> Tuple[np.ndarray, np.ndarray]:
5+
def normalize_xydata(line: Line2D) -> tuple[np.ndarray, np.ndarray]:
86
"""Make sure datetime values are properly converted to floats and convert
97
into data coordinates."""
108
# Convert the data into the data coordinates

0 commit comments

Comments
 (0)