Skip to content

Commit

Permalink
Parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Nov 5, 2024
1 parent daa40d6 commit 34ed20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.11
4.0.12
4 changes: 2 additions & 2 deletions src/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def is_not_empty (var):
return var is not None and not any(c == "{}".format(var).lower() for c in empty_chars)

def is_true (var):
if (isinstance(var, bool)):
if isinstance(var, bool):
return var
false_char = ["false", "ko", "no", "off"]
return is_not_empty(var) and not any(c == "{}".format(var).lower() for c in false_char)
Expand All @@ -37,7 +37,7 @@ def get_or_else(vdict, key, default):
return default if is_empty_key(vdict, key) else vdict[key]

def is_numeric (var):
if (isinstance(var, int)):
if isinstance(var, int):
return True
return is_not_empty(var) and str(var).isnumeric()

Expand Down

0 comments on commit 34ed20c

Please sign in to comment.