MCPcopy Create free account
hub / github.com/apache/arrow / _deprecate_api

Function _deprecate_api

python/pyarrow/util.py:100–106  ·  view source on GitHub ↗
(old_name, new_name, api, next_version, type=FutureWarning)

Source from the content-addressed store, hash-verified

98
99
100def _deprecate_api(old_name, new_name, api, next_version, type=FutureWarning):
101 msg = _DEPR_MSG.format(old_name, next_version, new_name)
102
103 def wrapper(*args, **kwargs):
104 warnings.warn(msg, type)
105 return api(*args, **kwargs)
106 return wrapper
107
108
109def _deprecate_class(old_name, new_class, next_version,

Callers 1

core.pyFile · 0.90

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected