(cls, spec)
| 105 | class Shard(object): |
| 106 | @classmethod |
| 107 | def parse(cls, spec): |
| 108 | # type: (str) -> Shard |
| 109 | slot, total_slots = spec.split("/", 1) if "/" in spec else spec.split("@", 1) |
| 110 | return cls(slot=int(slot), total_slots=int(total_slots)) |
| 111 | |
| 112 | def __init__( |
| 113 | self, |
no outgoing calls