pylint: Unnecessary parens after '=' keyword

This patch removes unnecessary usage of parens on attributions.
This commit is contained in:
Rafael Guterres Jeffman
2023-07-12 18:42:57 -03:00
parent 63d0272385
commit 07c1a5ee61
4 changed files with 11 additions and 11 deletions

View File

@@ -476,7 +476,7 @@ def main():
params = {}
for x in field_map:
val = ansible_module.params_get(
x, allow_empty_string=(x in allow_empty_string))
x, allow_empty_string=x in allow_empty_string)
if val is not None:
params[field_map.get(x, x)] = val
@@ -619,7 +619,7 @@ def main():
# boolean values, so we need to convert it to str
# for comparison.
# See: https://github.com/freeipa/freeipa/pull/6294
exit_args[k] = (str(value[0]).upper() == "TRUE")
exit_args[k] = str(value[0]).upper() == "TRUE"
else:
if arg_type not in type_map:
raise ValueError(