diff sat/core/constants.py @ 3794:a58715ffa445

core (constants): type hints
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents 5d108ce026d7
children 8289ac1b34f4
line wrap: on
line diff
--- a/sat/core/constants.py	Fri Jun 17 14:15:23 2022 +0200
+++ b/sat/core/constants.py	Fri Jun 17 14:15:23 2022 +0200
@@ -425,7 +425,7 @@
         )
 
     @classmethod
-    def bool(cls, value):
+    def bool(cls, value: str) -> bool:
         """@return (bool): bool value for associated constant"""
         assert isinstance(value, str)
         return value.lower() in (cls.BOOL_TRUE, "1", "yes", "on")