core (constants): type hints
This commit is contained in:
parent
408dc04ee6
commit
441ae82fcb
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue