def python_type_to_typescript_type(py_type: str) -> str:
    """
    Converts Python type to TypeScript type.
    """
    if py_type in ["int", "float"]:
        return "number"
    elif py_type == "bool":
        return "boolean"
    elif py_type == "str":
        return "string"
    elif py_type == "list":
        return "Array<any>"
    elif py_type == "dict":
        return "any"
    else:
        return "any"