diff --git a/Tests/ColorObjects/test_HSL.py b/Tests/ColorObjects/test_HSL.py index 7c352c8..ded71e0 100644 --- a/Tests/ColorObjects/test_HSL.py +++ b/Tests/ColorObjects/test_HSL.py @@ -13,6 +13,7 @@ # ---------------------------------------------------------------------------------------------------------------------- # - Code - # ---------------------------------------------------------------------------------------------------------------------- +# noinspection PyTypeChecker class ColorObjects_HSL(unittest.TestCase): @staticmethod def CreateColor(h=60,s=.5,l=.75) -> HSL: @@ -32,6 +33,7 @@ def test_repr(self): def test_str(self): self.assertEqual(str(self.CreateColor()),"60;0.5;0.75") + # noinspection PyTypeChecker def test_dunder_tuples(self): color = self.CreateColor() # Comparison diff --git a/Tests/ColorObjects/test_HSV.py b/Tests/ColorObjects/test_HSV.py index 9cb9782..cc9df66 100644 --- a/Tests/ColorObjects/test_HSV.py +++ b/Tests/ColorObjects/test_HSV.py @@ -13,6 +13,7 @@ # ---------------------------------------------------------------------------------------------------------------------- # - Code - # ---------------------------------------------------------------------------------------------------------------------- +# noinspection PyTypeChecker class ColorObjects_HSV(unittest.TestCase): @staticmethod def CreateColor(h=.25,s=.5,v=.75) -> HSV: @@ -32,6 +33,7 @@ def test_repr(self): def test_str(self): self.assertEqual(str(self.CreateColor()),"0.25;0.5;0.75") + # noinspection PyTypeChecker def test_dunder_tuples(self): color = self.CreateColor() # Comparison diff --git a/Tests/SpeedTest.py b/Tests/SpeedTest.py index 0ce9037..fdd3207 100644 --- a/Tests/SpeedTest.py +++ b/Tests/SpeedTest.py @@ -33,7 +33,7 @@ def TextNested(): return a,b,c def TextNestedBig(): - a = StyleNest.Bold( + StyleNest.Bold( StyleNest.Bold( StyleNest.Bold( StyleNest.Bold( diff --git a/setup.py b/setup.py index 07012b7..26c46c2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setuptools.setup( name="AthenaColor", - version="4.1.1", + version="4.1.2", author="Andreas Sas", author_email="", description="Package to support full usage of RGB colors in the Console.", diff --git a/src/AthenaColor/Functions/ANSIsquences.py b/src/AthenaColor/Functions/ANSIsquences.py index 645504a..6728dbb 100644 --- a/src/AthenaColor/Functions/ANSIsquences.py +++ b/src/AthenaColor/Functions/ANSIsquences.py @@ -36,7 +36,7 @@ def NestedColorSequence(obj:tuple, color_code:str, reset_code:int|str, sep:str=" # SHHH, don't touch this, this is speed 101 text = "" for o in obj[:-1]: - text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyways + text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyway return text + f"{color_code}{obj[-1]}{reset_code}" def NestedColorSequence_NoReset(obj:tuple, color_code:int|str, sep:str=" ") -> str: @@ -49,5 +49,5 @@ def NestedColorSequence_NoReset(obj:tuple, color_code:int|str, sep:str=" ") -> s # SHHH, don't touch this, this is speed 101 text = "" for o in obj[:-1]: - text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyways + text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyway return text + f"{color_code}{obj[-1]}" \ No newline at end of file diff --git a/src/AthenaColor/Objects/Color/ColorSystem.py b/src/AthenaColor/Objects/Color/ColorSystem.py index 669242f..7841d5a 100644 --- a/src/AthenaColor/Objects/Color/ColorSystem.py +++ b/src/AthenaColor/Objects/Color/ColorSystem.py @@ -17,7 +17,7 @@ # - All - # ---------------------------------------------------------------------------------------------------------------------- __all__ = [ - "ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK" + "ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK", "NormalizeRgb", "color_conversions_mapped" ] # ----------------------------------------------------------------------------------------------------------------------