Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77f6919

Browse files
authored
Remove 4-tuple from RGBColorType (only valid for RGBA)
1 parent 5ee8a74 commit 77f6919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# The following are type aliases. Once python 3.9 is dropped, they should be annotated
2020
# using ``typing.TypeAlias`` and Unions should be converted to using ``|`` syntax.
2121

22-
RGBColorType = Union[tuple[float, float, float], tuple[float, float, float, float], str]
22+
RGBColorType = Union[tuple[float, float, float], str]
2323
RGBAColorType = Union[
2424
str, # "none" or "#RRGGBBAA"/"#RGBA" hex strings
2525
tuple[float, float, float, float],

0 commit comments

Comments
 (0)