Method
process
(
self, args: tuple[Any, ...], kwargs: dict[str, Any]
)
Source from the content-addressed store, hash-verified
| 309 | """ |
| 310 | |
| 311 | def process( |
| 312 | self, args: tuple[Any, ...], kwargs: dict[str, Any] |
| 313 | ) -> tuple[tuple[Any, ...], dict[str, Any]]: |
| 314 | if 'size' in kwargs: |
| 315 | kwargs['shape'] = kwargs.pop('size') |
| 316 | elif len(args) >= 1 and isinstance(args[0], int): |
| 317 | kwargs['shape'] = list(args) |
| 318 | args = () |
| 319 | |
| 320 | return args, kwargs |
| 321 | |
| 322 | |
| 323 | def size_args_decorator( |
Callers
nothing calls this directly
Tested by
no test coverage detected