未验证 提交 07973c57 编写于 作者: L Leo Chen 提交者: GitHub

disable deprecated (#26684)

上级 5c14fdcf
...@@ -44,6 +44,8 @@ def deprecated(update_to="", since="", reason=""): ...@@ -44,6 +44,8 @@ def deprecated(update_to="", since="", reason=""):
""" """
def decorator(func): def decorator(func):
# TODO(zhiqiu): We temporally disable the warnings for 2.0-bata, and it should be re-enabled in the future.
return func
"""construct warning message, and return a decorated function or class.""" """construct warning message, and return a decorated function or class."""
assert isinstance(update_to, str), 'type of "update_to" must be str.' assert isinstance(update_to, str), 'type of "update_to" must be str.'
assert isinstance(since, str), 'type of "since" must be str.' assert isinstance(since, str), 'type of "since" must be str.'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册