summaryrefslogtreecommitdiff
path: root/string_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'string_utils.py')
-rw-r--r--string_utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/string_utils.py b/string_utils.py
index 740a0b9..911008d 100644
--- a/string_utils.py
+++ b/string_utils.py
@@ -225,10 +225,14 @@ def strip_escape_sequences(in_str: str) -> str:
return in_str
-def add_thousands_separator(in_str: str, *, separator_char = ',', places = 3) -> str:
+def add_thousands_separator(
+ in_str: str,
+ *,
+ separator_char = ',',
+ places = 3
+) -> str:
if isinstance(in_str, int):
in_str = f'{in_str}'
-
if is_number(in_str):
return _add_thousands_separator(
in_str,