changeset 3794:a58715ffa445

core (constants): type hints
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents b5c9021020df
children 967a8e109cda
files sat/core/constants.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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")