未验证 提交 b4a19762 编辑于 作者: Samuel Marks's avatar Samuel Marks
浏览文件

[*.py] Rename "Arguments:" to "Args:"

上级 fd0c3c74
......@@ -126,7 +126,7 @@ class BroadcastForm(object):
def summary(self, print_fn=print):
"""Prints a string summary of the `BroadcastForm`.
Arguments:
Args:
print_fn: Print function to use. It will be called on each line of the
summary in order to capture the string summary.
"""
......@@ -390,7 +390,7 @@ class CanonicalForm(object):
def summary(self, print_fn=print):
"""Prints a string summary of the `CanonicalForm`.
Arguments:
Args:
print_fn: Print function to use. It will be called on each line of the
summary in order to capture the string summary.
"""
......
......@@ -388,7 +388,7 @@ def _infer_unpack_needed(fn: types.FunctionType,
_Arguments = Tuple[List[Any], Dict[str, Any]]
def _unpack_arg(arg_types, kwarg_types, arg) -> _Arguments:
def _unpack_arg(arg_types, kwarg_types, arg) -> _Args:
"""Unpacks 'arg' into an argument list based on types."""
py_typecheck.check_type(arg, (structure.Struct, value_base.Value))
args = []
......@@ -418,7 +418,7 @@ def _unpack_arg(arg_types, kwarg_types, arg) -> _Arguments:
return args, kwargs
def _ensure_arg_type(parameter_type, arg) -> _Arguments:
def _ensure_arg_type(parameter_type, arg) -> _Args:
"""Ensures that `arg` matches `parameter_type` before returning it."""
arg_type = type_conversions.infer_type(arg)
if not parameter_type.is_assignable_from(arg_type):
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册