8000 Add possible type hint to LinearSegmentedColormap.from_list · matplotlib/matplotlib@32f2c3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 32f2c3b

Browse files
committed
Add possible type hint to LinearSegmentedColormap.from_list
1 parent 9955a7c commit 32f2c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class LinearSegmentedColormap(Colormap):
124124
def set_gamma(self, gamma: float) -> None: ...
125125
@staticmethod
126126
def from_list(
127-
name: str, colors: ArrayLike, N: int = ..., gamma: float = ...
127+
name: str, colors: ArrayLike | Sequence[tuple[float, ColorType]], N: int = ..., gamma: float = ...
128128
) -> LinearSegmentedColormap: ...
129129
def resampled(self, lutsize: int) -> LinearSegmentedColormap: ...
130130
def reversed(self, name: str | None = ...) -> LinearSegmentedColormap: ...

0 commit comments

Comments
 (0)
0