Searched refs:func_or_class (Results 1 – 1 of 1) sorted by relevance
134 def deprecated_alias(deprecated_name, name, func_or_class, warn_once=True): argument188 if tf_inspect.isclass(func_or_class):191 class _NewClass(func_or_class): # pylint: disable=missing-docstring193 func_or_class.__doc__, 'Please use %s instead.' % name,197 __name__ = func_or_class.__name__200 @_wrap_decorator(func_or_class.__init__)204 _NewClass.__init__.__func__.__doc__ = func_or_class.__init__.__doc__207 _NewClass.__init__.__doc__ = func_or_class.__init__.__doc__223 decorator_utils.validate_callable(func_or_class, 'deprecated')226 @functools.wraps(func_or_class)[all …]