Skip to content

Commit f61c06b

Browse files
trygvradQuLogic
andcommitted
Apply suggestions from code review
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent aa99db3 commit f61c06b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,12 +3605,12 @@ def _ensure_multicomponent_data(data, n_components):
36053605
Parameters
36063606
----------
36073607
n_components : int
3608-
Number of omponents in the data.
3608+
Number of components in the data.
36093609
data : np.ndarray, PIL.Image or None
36103610
36113611
Returns
36123612
-------
3613-
np.ndarray, PIL.Image or None
3613+
np.ndarray, PIL.Image or None
36143614
"""
36153615

36163616
if isinstance(data, np.ndarray):

lib/matplotlib/colors.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ class MultiNorm(Norm):
440440
@clip.setter
441441
def clip(self, values: ArrayLike | None) -> None: ...
442442
@overload
443-
def __call__(self, values: tuple[np.ndarray, ...], clip: ArrayLike | bool | None = ...) -> tuple[np.ndarray]: ...
443+
def __call__(self, values: tuple[np.ndarray, ...], clip: ArrayLike | bool | None = ...) -> tuple[np.ndarray, ...]: ...
444444
@overload
445-
def __call__(self, values: tuple[float, ...], clip: ArrayLike | bool | None = ...) -> tuple[float]: ...
445+
def __call__(self, values: tuple[float, ...], clip: ArrayLike | bool | None = ...) -> tuple[float, ...]: ...
446446
@overload
447447
def __call__(self, values: ArrayLike, clip: ArrayLike | bool | None = ...) -> tuple: ...
448448
def inverse(self, values: ArrayLike) -> list: ... # type: ignore[override]

0 commit comments

Comments
 (0)