Clean sttings.py in azure-core
@@ -58,9 +58,9 @@ def convert_bool(value):
"""
if value in (True, False):
- return value
+ return value # type: ignore
- val = value.lower()
+ val = value.lower() # type: ignore
if val in ["yes", "1", "on"]:
return True
if val in ["no", "0", "off"]:
@@ -97,9 +97,9 @@ def convert_logging(value):
"""
if value in set(_levels.values()):
- return value
+ return value # type: ignore
- val = value.upper()
+ val = value.upper() # type: ignore
level = _levels.get(val)
if not level:
raise ValueError(
@@ -338,7 +338,7 @@ class Settings(object):
props.update(kwargs)
return self._config(props)
- def _config(self, props):
+ def _config(self, props): #pylint: disable=no-self-use
Config = namedtuple("Config", list(props.keys()))
return Config(**props)
