Skip to content

Commit f91d2b4

Browse files
committed
typing: add ScaleBase.val_in_range to scale.pyi
1 parent c3df005 commit f91d2b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/scale.pyi

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

44
from collections.abc import Callable, Iterable
55
from typing import Literal
6+
import numpy as np
67
from numpy.typing import ArrayLike
78

89
class ScaleBase:
@@ -12,6 +13,7 @@ class ScaleBase:
1213
def limit_range_for_scale(
1314
self, vmin: float, vmax: float, minpos: float
1415
) -> tuple[float, float]: ...
16+
def val_in_range(self, val: ArrayLike) -> bool | np.ndarray: ...
1517

1618
class LinearScale(ScaleBase):
1719
name: str

0 commit comments

Comments
 (0)