Calls the function with the given positional and keyword arguments. Args: *args: The positional arguments to pass to the function. **kwargs: The named arguments to pass to the function. Returns: A ComputedObject representing the called function. If the signature spe
(self, *args, **kwargs)
| 49 | 'Function subclasses must implement getSignature().') |
| 50 | |
| 51 | def call(self, *args, **kwargs): |
| 52 | """Calls the function with the given positional and keyword arguments. |
| 53 | |
| 54 | Args: |
| 55 | *args: The positional arguments to pass to the function. |
| 56 | **kwargs: The named arguments to pass to the function. |
| 57 | |
| 58 | Returns: |
| 59 | A ComputedObject representing the called function. If the signature |
| 60 | specifies a recognized return type, the returned value will be cast |
| 61 | to that type. |
| 62 | """ |
| 63 | return self.apply(self.nameArgs(args, kwargs)) |
| 64 | |
| 65 | def apply(self, named_args: dict[str, Any]) -> computedobject.ComputedObject: |
| 66 | """Calls the function with a dictionary of named arguments. |