MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / from_obj

Method from_obj

masfactory/utils/selector.py:22–23  ·  view source on GitHub ↗
(cls, obj: object)

Source from the content-addressed store, hash-verified

20
21 @classmethod
22 def from_obj(cls, obj: object) -> "SelectionTarget":
23 return cls(name=getattr(obj, "name", None), cls=type(obj), obj=obj)
24
25
26class Selector:

Callers 1

matchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected