Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d62a69f

Browse files
committed
typing: refactor Scale.val_in_range to reflect the type changes
1 parent 631a52f commit d62a69f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/scale.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ from matplotlib.transforms import Transform
33

44
from collections.abc import Callable, Iterable
55
from typing import Literal
6-
import numpy as np
76
from numpy.typing import ArrayLike
87

98
class ScaleBase:
@@ -13,7 +12,7 @@ class ScaleBase:
1312
def limit_range_for_scale(
1413
self, vmin: float, vmax: float, minpos: float
1514
) -> tuple[float, float]: ...
16-
def val_in_range(self, val: ArrayLike) -> bool | np.ndarray: ...
15+
def val_in_range(self, val: float) -> bool: ...
1716

1817
class LinearScale(ScaleBase):
1918
name: str

0 commit comments

Comments
 (0)