MCPcopy Create free account
hub / github.com/BAAI-DCAI/SpatialBot / from_str

Method from_str

bunny/serve/controller.py:30–36  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

28
29 @classmethod
30 def from_str(cls, name):
31 if name == "lottery":
32 return cls.LOTTERY
33 elif name == "shortest_queue":
34 return cls.SHORTEST_QUEUE
35 else:
36 raise ValueError(f"Invalid dispatch method")
37
38
39@dataclasses.dataclass

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected