Fix or disable pylint warnings for inconsistent return.

In some places, disabling the warnings rather than fixing it required
less changes, without compromising readability.
This commit is contained in:
Rafael Guterres Jeffman
2021-04-29 18:27:33 -03:00
parent 482bd05b62
commit 59d4d1b146
14 changed files with 40 additions and 42 deletions

View File

@@ -258,6 +258,8 @@ else:
finally:
temp_kdestroy(ccache_dir, ccache_name)
# fix pylint inconsistent return
return None
def date_format(value):
accepted_date_formats = [
@@ -536,8 +538,9 @@ else:
def __getitem__(self, key):
param = self.mapping[key]
if param is not None:
return _afm_convert(param)
if param is None:
return None
return _afm_convert(param)
def __iter__(self):
return iter(self.mapping)