def OptionalArgs(self):
    """Gets a list of optional arguments accepted by the doc'd code."""
    if (self.locals.get('type') == vimdoc.FUNCTION
        and self._optional_args
        and '...' not in self.locals.get('args')):
      # The function accepts no optional parameters. Warn and return nothing.
      warnings.warn(
          'Documentation claims optional parameters '
          'that function {} does not accept.'.format(self.FullName()),
          error.DocumentationWarning)
      return ()
    return self._optional_args
dataset/ETHPy150Open google/vimdoc/vimdoc/block.py/Block.OptionalArgs/original