projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Random cleanups and type safety. Created ml subdir.
[python_utils.git]
/
string_utils.py
diff --git
a/string_utils.py
b/string_utils.py
index 740a0b960d1da84a4686bf535eb39f006d9d3b77..911008d4c93bc50d6d78bb7d09d9d4aaaffdbcd5 100644
(file)
--- a/
string_utils.py
+++ b/
string_utils.py
@@
-225,10
+225,14
@@
def strip_escape_sequences(in_str: str) -> str:
return in_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 isinstance(in_str, int):
in_str = f'{in_str}'
-
if is_number(in_str):
return _add_thousands_separator(
in_str,
if is_number(in_str):
return _add_thousands_separator(
in_str,