diff options
| author | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-11 10:16:07 -0700 |
| commit | a838c154135b2420d9047a101caf24a2c9f593c2 (patch) | |
| tree | fbb0f6a0e66b4826352003d67f6e20bbcda0dda4 /string_utils.py | |
| parent | 7d7a3ce0abb26766e82c6dfed8a196baa63b736a (diff) | |
Random cleanups and type safety. Created ml subdir.
Diffstat (limited to 'string_utils.py')
| -rw-r--r-- | string_utils.py | 8 |
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, |
