From 32f2c3b816e201efc769bba17c3bfc1f813edf04 Mon Sep 17 00:00:00 2001 From: Felipe Cybis Pereira Date: Fri, 12 Apr 2024 17:18:20 +0200 Subject: [PATCH] Add possible type hint to LinearSegmentedColormap.from_list --- lib/matplotlib/colors.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/colors.pyi b/lib/matplotlib/colors.pyi index 9bb1725f4f78..514801b714b8 100644 --- a/lib/matplotlib/colors.pyi +++ b/lib/matplotlib/colors.pyi @@ -124,7 +124,7 @@ class LinearSegmentedColormap(Colormap): def set_gamma(self, gamma: float) -> None: ... @staticmethod def from_list( - name: str, colors: ArrayLike, N: int = ..., gamma: float = ... + name: str, colors: ArrayLike | Sequence[tuple[float, ColorType]], N: int = ..., gamma: float = ... ) -> LinearSegmentedColormap: ... def resampled(self, lutsize: int) -> LinearSegmentedColormap: ... def reversed(self, name: str | None = ...) -> LinearSegmentedColormap: ...