Skip to content

Commit 797ce7a

Browse files
committed
TYP: annotate get_standard_colors
1 parent 1626108 commit 797ce7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/plotting/_matplotlib/style.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import (
22
TYPE_CHECKING,
33
Collection,
4+
Dict,
45
Iterator,
56
List,
67
Optional,
@@ -27,9 +28,9 @@
2728

2829
def get_standard_colors(
2930
num_colors: int,
30-
colormap=None,
31+
colormap: Optional["Colormap"] = None,
3132
color_type: str = "default",
32-
color=None,
33+
color: Optional[Union[Dict[str, Color], Color]] = None,
3334
):
3435
if isinstance(color, dict):
3536
return color

0 commit comments

Comments
 (0)