(cls, x: t.Union[Self, t.List[BlockOrPrimitive], BlockOrPrimitive])
| 75 | |
| 76 | @classmethod |
| 77 | def wrap_blocks(cls, x: t.Union[Self, t.List[BlockOrPrimitive], BlockOrPrimitive]) -> Self: |
| 78 | blocks: Self |
| 79 | if isinstance(x, Blocks): |
| 80 | blocks = copy(x) |
| 81 | elif isinstance(x, list): |
| 82 | blocks = cls(*x) |
| 83 | else: |
| 84 | blocks = cls(x) |
| 85 | return blocks |
| 86 | |
| 87 | @property |
| 88 | def has_compute(self): |
no outgoing calls
no test coverage detected