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

Method clearApi

python/ee/apifunction.py:253–262  ·  view source on GitHub ↗

Removes all methods added by importApi() from a target class. Args: target: The class to remove from.

(target: type[Any])

Source from the content-addressed store, hash-verified

251
252 @staticmethod
253 def clearApi(target: type[Any]) -> None:
254 """Removes all methods added by importApi() from a target class.
255
256 Args:
257 target: The class to remove from.
258 """
259 for attr_name in dir(target):
260 attr_value = getattr(target, attr_name)
261 if callable(attr_value) and hasattr(attr_value, 'signature'):
262 delattr(target, attr_name)

Callers 15

resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80
resetMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_add_functionsMethod · 0.64