From 4e00c095faf3db99735657635c3323621bbbc1ce Mon Sep 17 00:00:00 2001 From: joejiong Date: Mon, 23 Nov 2020 20:23:34 +0800 Subject: [PATCH] fix warning in english doc (#28981) --- python/paddle/utils/deprecated.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 python/paddle/utils/deprecated.py diff --git a/python/paddle/utils/deprecated.py b/python/paddle/utils/deprecated.py old mode 100644 new mode 100755 index d4e21748b55..daa2826ca36 --- a/python/paddle/utils/deprecated.py +++ b/python/paddle/utils/deprecated.py @@ -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. """ -- GitLab