Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 41eaffb

Browse files
author
DirectiveAthena
committed
Fix: various fixes
Typos completed __all__
1 parent d506113 commit 41eaffb

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Tests/ColorObjects/test_HSL.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# ----------------------------------------------------------------------------------------------------------------------
1414
# - Code -
1515
# ----------------------------------------------------------------------------------------------------------------------
16+
# noinspection PyTypeChecker
1617
class ColorObjects_HSL(unittest.TestCase):
1718
@staticmethod
1819
def CreateColor(h=60,s=.5,l=.75) -> HSL:
@@ -32,6 +33,7 @@ def test_repr(self):
3233
def test_str(self):
3334
self.assertEqual(str(self.CreateColor()),"60;0.5;0.75")
3435

36+
# noinspection PyTypeChecker
3537
def test_dunder_tuples(self):
3638
color = self.CreateColor()
3739
# Comparison

Tests/ColorObjects/test_HSV.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# ----------------------------------------------------------------------------------------------------------------------
1414
# - Code -
1515
# ----------------------------------------------------------------------------------------------------------------------
16+
# noinspection PyTypeChecker
1617
class ColorObjects_HSV(unittest.TestCase):
1718
@staticmethod
1819
def CreateColor(h=.25,s=.5,v=.75) -> HSV:
@@ -32,6 +33,7 @@ def test_repr(self):
3233
def test_str(self):
3334
self.assertEqual(str(self.CreateColor()),"0.25;0.5;0.75")
3435

36+
# noinspection PyTypeChecker
3537
def test_dunder_tuples(self):
3638
color = self.CreateColor()
3739
# Comparison

Tests/SpeedTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def TextNested():
3333
return a,b,c
3434

3535
def TextNestedBig():
36-
a = StyleNest.Bold(
36+
StyleNest.Bold(
3737
StyleNest.Bold(
3838
StyleNest.Bold(
3939
StyleNest.Bold(

src/AthenaColor/Functions/ANSIsquences.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def NestedColorSequence(obj:tuple, color_code:str, reset_code:int|str, sep:str="
3636
# SHHH, don't touch this, this is speed 101
3737
text = ""
3838
for o in obj[:-1]:
39-
text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyways
39+
text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyway
4040
return text + f"{color_code}{obj[-1]}{reset_code}"
4141

4242
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
4949
# SHHH, don't touch this, this is speed 101
5050
text = ""
5151
for o in obj[:-1]:
52-
text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyways
52+
text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyway
5353
return text + f"{color_code}{obj[-1]}"

src/AthenaColor/Objects/Color/ColorSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# - All -
1818
# ----------------------------------------------------------------------------------------------------------------------
1919
__all__ = [
20-
"ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK"
20+
"ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK", "NormalizeRgb", "color_conversions_mapped"
2121
]
2222

2323
# ----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)