We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ecea2a + 76cb6d0 commit 15ab8b8Copy full SHA for 15ab8b8
lib/matplotlib/colors.pyi
@@ -69,6 +69,15 @@ class Colormap:
69
N: int
70
colorbar_extend: bool
71
def __init__(self, name: str, N: int = ...) -> None: ...
72
+ @overload
73
+ def __call__(
74
+ self, X: Sequence[float] | np.ndarray, alpha: ArrayLike | None = ..., bytes: bool = ...
75
+ ) -> np.ndarray: ...
76
77
78
+ self, X: float, alpha: float | None = ..., bytes: bool = ...
79
+ ) -> tuple[float, float, float, float]: ...
80
81
def __call__(
82
self, X: ArrayLike, alpha: ArrayLike | None = ..., bytes: bool = ...
83
) -> tuple[float, float, float, float] | np.ndarray: ...
0 commit comments