diff --git a/typings/wx/core.pyi b/typings/wx/core.pyi index c68d01ade..bf52a4b23 100644 --- a/typings/wx/core.pyi +++ b/typings/wx/core.pyi @@ -12249,7 +12249,7 @@ class Pen(GDIObject): @overload def __init__(self, info: PenInfo): ... @overload - def __init__(self, colour: Colour, width: int = 1, style: PenStyle = PENSTYLE_SOLID): ... + def __init__(self, colour: ColourType, width: int = 1, style: PenStyle = PENSTYLE_SOLID): ... def SetColour(self, *args, **kw): """ SetColour(colour) diff --git a/typings/wx/type_defs.pyi b/typings/wx/type_defs.pyi index 211767587..9f2de419e 100644 --- a/typings/wx/type_defs.pyi +++ b/typings/wx/type_defs.pyi @@ -14,4 +14,5 @@ ColourType = ( | list[int] | wx.Colour | tuple[float, float, float, float] + | str )