More work to improve documentation generated by sphinx. Also fixes
[pyutils.git] / src / pyutils / string_utils.py
index dbe3c1f1c4fd43aa487118201dc184f450671f5a..f6056d0f69e5097355bc018d62c9640c8a2377c5 100644 (file)
@@ -569,7 +569,7 @@ def number_string_to_integer(in_str: str) -> int:
     ValueError: Unknown word: xyzzy
     """
     if type(in_str) == int:
-        return in_str
+        return int(in_str)
 
     current = result = 0
     in_str = in_str.replace('-', ' ')