Skip to content

Commit

Permalink
Fix type hint for get_current_color method to use Tuple instead of tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Zingzy committed Nov 30, 2024
1 parent 339c83f commit f636e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hPyT/hPyT.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def color_changer(hwnd: int, interval: int):
set_window_long(hwnd, GWL_EXSTYLE, old_ex_style) # Reset the window style

@classmethod
def get_current_color(cls) -> tuple[int, int, int]:
def get_current_color(cls) -> Tuple[int, int, int]:
"""
Get the current RGB color value of the title bar, which is being displayed by the rainbow effect.
Can be useful if you want to synchronize the title bar's rainbow effect with other elements of the window.
Expand Down Expand Up @@ -879,7 +879,7 @@ def color_changer(hwnd, interval: int):
set_window_long(hwnd, GWL_EXSTYLE, old_ex_style) # Reset the window style

@classmethod
def get_current_color(cls) -> tuple[int, int, int]:
def get_current_color(cls) -> Tuple[int, int, int]:
"""
Get the current RGB color value of the border, which is being displayed by the rainbow effect.
Can be useful if you want to synchronize the border's rainbow effect with other elements of the window.
Expand Down

0 comments on commit f636e54

Please sign in to comment.