Creates a function defined by the EE API. Args: name: The name of the function. signature: The signature of the function. If unspecified, looked up dynamically.
(self, name: str, signature: dict[str, Any] | None = None)
| 42 | |
| 43 | @_utils.accept_opt_prefix('opt_signature') |
| 44 | def __init__(self, name: str, signature: dict[str, Any] | None = None): |
| 45 | """Creates a function defined by the EE API. |
| 46 | |
| 47 | Args: |
| 48 | name: The name of the function. |
| 49 | signature: The signature of the function. If unspecified, looked up |
| 50 | dynamically. |
| 51 | """ |
| 52 | if signature is None: |
| 53 | signature = ApiFunction.lookup(name).getSignature() |
| 54 | |
| 55 | # The signature of this API function. |
| 56 | self._signature = copy.deepcopy(signature) |
| 57 | self._signature['name'] = name |
| 58 | |
| 59 | def __eq__(self, other: Any) -> bool: |
| 60 | return (isinstance(other, ApiFunction) and |
nothing calls this directly
no test coverage detected