diff options
| author | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
| commit | a838c154135b2420d9047a101caf24a2c9f593c2 (patch) | |
| tree | fbb0f6a0e66b4826352003d67f6e20bbcda0dda4 /datetime_utils.py | |
| parent | 7d7a3ce0abb26766e82c6dfed8a196baa63b736a (diff) | |
Random cleanups and type safety. Created ml subdir.
Diffstat (limited to 'datetime_utils.py')
| -rw-r--r-- | datetime_utils.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/datetime_utils.py b/datetime_utils.py index 795b427..f2cae8b 100644 --- a/datetime_utils.py +++ b/datetime_utils.py @@ -80,13 +80,10 @@ class TimeUnit(enum.Enum): @classmethod def is_valid(cls, value: Any): if type(value) is int: - print("int") return value in cls._value2member_map_ elif type(value) is TimeUnit: - print("TimeUnit") return value.value in cls._value2member_map_ elif type(value) is str: - print("str") return value in cls._member_names_ else: print(type(value)) |
