Skip to content

Commit

Permalink
Changed ColourType to accept str
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-abdelgawad committed Jul 10, 2024
1 parent 0fa96e5 commit 1e1d319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion typings/wx/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions typings/wx/type_defs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ColourType = (
| list[int]
| wx.Colour
| tuple[float, float, float, float]
| str
)

0 comments on commit 1e1d319

Please sign in to comment.