From 441ae82fcb3eecdc9ce170b4fb7ac6b5ba91e11e Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 17 Jun 2022 14:15:23 +0200 Subject: [PATCH] core (constants): type hints --- sat/core/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/core/constants.py b/sat/core/constants.py index 3ea4b788..9a0daba1 100644 --- a/sat/core/constants.py +++ b/sat/core/constants.py @@ -425,7 +425,7 @@ class Const(object): ) @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")