MCPcopy
hub / github.com/google/earthengine-api / Wrapper

Function Wrapper

python/ee/deprecation.py:38–45  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

36
37 @functools.wraps(func)
38 def Wrapper(*args, **kwargs):
39 warnings.warn_explicit(
40 f'{func.__name__}() is deprecated: {message}',
41 category=DeprecationWarning,
42 filename=func.__code__.co_filename,
43 lineno=func.__code__.co_firstlineno + 1,
44 )
45 return func(*args, **kwargs)
46
47 deprecation_message = '\nDEPRECATED: ' + message
48 Wrapper.__doc__ += deprecation_message

Callers

nothing calls this directly

Calls 4

_GetStringFromObjectFunction · 0.85
indexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected