MCPcopy Index your code
hub / github.com/ray-project/ray / __getattr__

Method __getattr__

python/ray/dag/input_node.py:142–150  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

140 return get_dag_node_str(self, "__InputNode__")
141
142 def __getattr__(self, key: str):
143 assert isinstance(
144 key, str
145 ), "Please only access dag input attributes with str key."
146 if key not in self.input_attribute_nodes:
147 self.input_attribute_nodes[key] = InputAttributeNode(
148 self, key, "__getattr__"
149 )
150 return self.input_attribute_nodes[key]
151
152 def __getitem__(self, key: Union[int, str]) -> Any:
153 assert isinstance(key, (str, int)), (

Callers

nothing calls this directly

Calls 1

InputAttributeNodeClass · 0.85

Tested by

no test coverage detected