MCPcopy
hub / github.com/pex-tool/pex / parse

Method parse

testing/pytest_utils/shard.py:107–110  ·  view source on GitHub ↗
(cls, spec)

Source from the content-addressed store, hash-verified

105class 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,

Calls

no outgoing calls