def is_integer(number: str) -> bool: #Shares name with the float method
  """Returns whether or not the given string is an integer."""
  return number.replace('.', '', 1).isdecimal() and float(number).is_integer()