MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __getattr__

Method __getattr__

utils/config.py:26–30  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

24 super(CfgNode, self).__init__(init_dict)
25
26 def __getattr__(self, name):
27 if name in self:
28 return self[name]
29 else:
30 raise AttributeError(name)
31
32 def __setattr__(self, name, value):
33 self[name] = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected