未验证 提交 4e00c095 编写于 作者: J joejiong 提交者: GitHub

fix warning in english doc (#28981)

上级 70385518
......@@ -35,10 +35,12 @@ def deprecated(update_to="", since="", reason=""):
- The docstring of the API will be modified to include a notice
about deprecation."
- Raises a :class:`~exceptions.DeprecatedWarning` when old API is called.
Args:
since(str): The version at which the decorated method is considered deprecated.
update_to(str): The new API users should use.
reason(str): The reason why the API is deprecated.
Returns:
decorator: decorated function or class.
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册