MCPcopy Create free account
hub / github.com/dot-agent/nextpy / with_args

Method with_args

nextpy/backend/event.py:219–233  ·  view source on GitHub ↗

Copy the event spec, with updated args. Args: args: The new args to pass to the function. Returns: A copy of the event spec, with the new args.

(self, args: Tuple[Tuple[Var, Var], ...])

Source from the content-addressed store, hash-verified

217 frozen = True
218
219 def with_args(self, args: Tuple[Tuple[Var, Var], ...]) -> EventSpec:
220 """Copy the event spec, with updated args.
221
222 Args:
223 args: The new args to pass to the function.
224
225 Returns:
226 A copy of the event spec, with the new args.
227 """
228 return type(self)(
229 handler=self.handler,
230 client_handler_name=self.client_handler_name,
231 args=args,
232 event_actions=self.event_actions.copy(),
233 )
234
235
236class CallableEventSpec(EventSpec):

Callers 1

_create_event_chainMethod · 0.80

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected