@compatibility(is_backward_compatible=True)
def update_arg(self, idx: int, arg: Argument) -> None:
    '\n        Update an existing positional argument to contain the new value\n        ``arg``. After calling, ``self.args[idx] == arg``.\n\n        Args:\n\n            idx (int): The index into ``self.args`` of the element to update\n            arg (Argument): The new argument value to write into ``args``\n        '
    args = list(self.args)
    args[idx] = arg
    self.args = tuple(args)
Update an existing positional argument to contain the new value
``arg``. After calling, ``self.args[idx] == arg``.

Args:

    idx (int): The index into ``self.args`` of the element to update
    arg (Argument): The new argument value to write into ``args``
@compatibility(is_backward_compatible=True)
def update_arg(self, idx: int, arg: Argument) -> None:
    '\n        Update an existing positional argument to contain the new value\n        ``arg``. After calling, ``self.args[idx] == arg``.\n\n        Args:\n\n            idx (int): The index into ``self.args`` of the element to update\n            arg (Argument): The new argument value to write into ``args``\n        '
    args = list(self.args)
    args[idx] = arg
    self.args = tuple(args)