


import argparse


A   :					Tuple	=      "docs/source/_static/js/custom.js"

def    lowercase_	(	_A    :					List[Any]		):

      """simple docstring"""




      with open(_A					,      encoding="utf-8"					,      newline="\n"		) as f:
            lowerCamelCase__	:       Tuple					=						f.readlines()
      lowerCamelCase__	:       str					=						0

      # First let's put the right version
      while not lines[index].startswith("const stableVersion ="		):
            index += 1
      lowerCamelCase__	:       int					=						F"const stableVersion = \"v{version}\"\n"

      # Then update the dictionary
      while not lines[index].startswith("const versionMapping = {"		):
            index += 1

      # We go until the end
      while not lines[index].startswith("}"		):
            index += 1
      # We add the new version at the end
      lines[index - 1] += F"    \"v{version}\": \"v{version}\",\n"

      with open(_A					,      "w"					,      encoding="utf-8"					,      newline="\n"		) as f:
            f.writelines(_A		)


if __name__ == "__main__":
    A   :					Dict	=      argparse.ArgumentParser()
    parser.add_argument("--version", help="Release version.")
    A   :					Optional[int]	=      parser.parse_args()
    update_custom_js(args.version)






def    lowercase_	(	_A    :					int		):

      """simple docstring"""




      if not isinstance(_A					,      _A		):
            lowerCamelCase__	:       List[str]					=						F"Input value of [number={number}] must be an integer"
            raise TypeError(_A		)
      if number < 0:
            return False
      lowerCamelCase__	:       Dict					=						number * number
      while number > 0:
            if number % 10 != number_square % 10:
                  return False
            number //= 10
            number_square //= 10
      return True


if __name__ == "__main__":
    import doctest

    doctest.testmod()


