changeset 4:e8e4fd6d5619

refactor
author drewp@bigasterisk.com
date Sun, 28 Jan 2024 16:01:00 -0800
parents c04563fc8616
children 7eeda7f4f9cd
files color.py light.py
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/color.py	Sun Jan 28 16:01:00 2024 -0800
@@ -0,0 +1,6 @@
+
+class Color(str):
+
+    def to_js(self):
+        return self
+
--- a/light.py	Sun Jan 28 16:00:43 2024 -0800
+++ b/light.py	Sun Jan 28 16:01:00 2024 -0800
@@ -5,11 +5,6 @@
 
 log = logging.getLogger('light')
 
-class Color(str):
-
-    def to_js(self):
-        return self
-
 
 @dataclass
 class Light: