Skip to content

Commit 7e5a02a

Browse files
Michael Vincent ManninoMichael Vincent Mannino
authored andcommitted
update return types
1 parent d97606c commit 7e5a02a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ def _get_c_values(self, color, color_by_categorical: bool, c_is_column: bool):
14091409
c_values = c
14101410
return c_values
14111411

1412-
def _are_valid_colors(self, c_values: Series):
1412+
def _are_valid_colors(self, c_values: Series) -> bool:
14131413
# check if c_values contains strings and if these strings are valid mpl colors.
14141414
# no need to check numerics as these (and mpl colors) will be validated for us
14151415
# in .Axes.scatter._parse_scatter_color_args(...)
@@ -1423,7 +1423,7 @@ def _are_valid_colors(self, c_values: Series):
14231423
except (TypeError, ValueError) as _:
14241424
return False
14251425

1426-
def _get_color_mapping(self, c_values: Series) -> dict[str, str]:
1426+
def _get_color_mapping(self, c_values: Series) -> dict[str, np.ndarray]:
14271427
unique = np.unique(c_values)
14281428
n_colors = len(unique)
14291429

0 commit comments

Comments
 (0)