MCPcopy Create free account
hub / github.com/lingeringlight/START / __getattr__

Method __getattr__

utils.py:92–98  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

90 self.meters[k].update(v)
91
92 def __getattr__(self, attr):
93 if attr in self.meters:
94 return self.meters[attr]
95 if attr in self.__dict__:
96 return self.__dict__[attr]
97 raise AttributeError("'{}' object has no attribute '{}'".format(
98 type(self).__name__, attr))
99
100 def __str__(self):
101 loss_str = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected