Skip to content

Commit

Permalink
Linting fixes that are logic-ish changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaak-Malers committed Feb 23, 2024
1 parent aa4f4e0 commit 1af388b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CliFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def type_coercer(self, *, arg: str, desired_type: type):
if desired_type is bool:
if arg.lower() in ['true', 't', 'y', 'yes']:
return True
elif arg.lower() in ['false', 'f', 'n', 'no']:
if arg.lower() in ['false', 'f', 'n', 'no']:
return False
else:
return None
Expand All @@ -73,8 +73,7 @@ def type_coercer(self, *, arg: str, desired_type: type):
except Exception: # noqa
return None # what a vile pythonic thing to do.

else:
return None
return None

def generate_method_kwargs(self, *, args: [str], function) -> dict:
"""
Expand Down

0 comments on commit 1af388b

Please sign in to comment.