Random cleanups and type safety. Created ml subdir.
[python_utils.git] / datetime_utils.py
index 795b427c31b4e57a4551aab26badd1f81b68c9a2..f2cae8b9f06b2f69e5132685f611e4aaceeb02d2 100644 (file)
@@ -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))