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], ...])
| 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 | |
| 236 | class CallableEventSpec(EventSpec): |
no test coverage detected