From a4e3957599bae3c16c77f99fe2bfa2849d547a3c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 2 Jan 2024 16:24:10 -0500 Subject: [PATCH] Hints for the hints throne --- py/hexagram/path.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/hexagram/path.py b/py/hexagram/path.py index ccf771f..d67bfb0 100644 --- a/py/hexagram/path.py +++ b/py/hexagram/path.py @@ -56,12 +56,15 @@ class Path(): def __init__(self, commands: Iterable): self.commands = commands - def is_command(c): + @staticmethod + def is_command(c: int): return (c >= ord('a') and c <= ord('z')) or (c >= ord('A') and c <= ord('Z')) - def is_number(c): + @staticmethod + def is_number(c: int): return (c >= ord('0') and c <= ord('9')) + @staticmethod def parse(text: str) -> list: commands = list() command = PathCommand()