Skip to content

Commit 56481c1

Browse files
committed
[openpyxl] Reorder overloads
Should help with python#14194
1 parent a92ecca commit 56481c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/openpyxl/openpyxl/styles/colors.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ 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: ...
70-
@overload
7169
def __set__(self: ColorDescriptor[Literal[True]], instance: Serialisable | Strict, value: Color | None) -> None: ...
7270
@overload
7371
def __set__(self: ColorDescriptor[Literal[False]], instance: Serialisable | Strict, value: Color) -> None: ...
72+
@overload
73+
def __set__(self: ColorDescriptor[_N], instance: Serialisable | Strict, value: str) -> None: ...
7474

7575
class RgbColor(Serialisable):
7676
tagname: ClassVar[str]

0 commit comments

Comments
 (0)