Skip to content

Commit 09b6802

Browse files
authored
[openpyxl] Remove unnecessary overload (#14201)
1 parent 5a3c495 commit 09b6802

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stubs/openpyxl/openpyxl/styles/colors.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ class ColorDescriptor(Typed[Color, _N]):
6666
self: ColorDescriptor[Literal[False]], name: str | None = None, *, allow_none: Literal[False] = False
6767
) -> None: ...
6868
@overload
69-
def __set__(self: ColorDescriptor[_N], instance: Serialisable | Strict, value: str) -> None: ...
69+
def __set__(self: ColorDescriptor[Literal[True]], instance: Serialisable | Strict, value: str | Color | None) -> None: ...
7070
@overload
71-
def __set__(self: ColorDescriptor[Literal[True]], instance: Serialisable | Strict, value: Color | None) -> None: ...
72-
@overload
73-
def __set__(self: ColorDescriptor[Literal[False]], instance: Serialisable | Strict, value: Color) -> None: ...
71+
def __set__(self: ColorDescriptor[Literal[False]], instance: Serialisable | Strict, value: str | Color) -> None: ...
7472

7573
class RgbColor(Serialisable):
7674
tagname: ClassVar[str]

0 commit comments

Comments
 (0)