Fix typehinting in colours.py
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Better Colour Class for matplotlib
|
||||
|
||||
__author__ = "Cal Wing"
|
||||
__version__ = "0.0.1"
|
||||
__version__ = "0.0.2"
|
||||
|
||||
from cycler import cycler, Cycler
|
||||
from typing import Sequence, ItemsView, KeysView
|
||||
@@ -41,7 +41,7 @@ class ColourValue(str):
|
||||
f"({self.rgba[0]:.2f}, {self.rgba[1]:.2f}, " \
|
||||
f"{self.rgba[2]:.2f}, {self.rgba[3]:.2f})>"
|
||||
|
||||
def alpha_adj(self, alpha):
|
||||
def alpha_adj(self, alpha) -> tuple[float, float, float, float]:
|
||||
r, g, b, _ = self.rgba
|
||||
return (r, g, b, alpha)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user