(cls, size_arg: _SizeSerialization)
| 362 | |
| 363 | @classmethod |
| 364 | def parse_args(cls, size_arg: _SizeSerialization) -> Self: |
| 365 | sector_size = size_arg['sector_size'] |
| 366 | |
| 367 | return cls( |
| 368 | size_arg['value'], |
| 369 | Unit[size_arg['unit']], |
| 370 | SectorSize.parse_args(sector_size), |
| 371 | ) |
| 372 | |
| 373 | def convert( |
| 374 | self, |
no outgoing calls
no test coverage detected