# HG changeset patch # User Goffi # Date 1655468123 -7200 # Node ID a58715ffa445a4ce4014191d8a3dac257a27b412 # Parent b5c9021020df69bfe8ac4c97320c79788597986a core (constants): type hints diff -r b5c9021020df -r a58715ffa445 sat/core/constants.py --- 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")