disable deprecated (#26684)

revert-26856-strategy_example2
Leo Chen 5 years ago committed by GitHub
parent 5c14fdcf0c
commit 07973c577e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,6 +44,8 @@ def deprecated(update_to="", since="", reason=""):
"""
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."""
assert isinstance(update_to, str), 'type of "update_to" must be str.'
assert isinstance(since, str), 'type of "since" must be str.'

Loading…
Cancel
Save