MCPcopy Create free account
hub / github.com/DanielShalam/BPA / __getattr__

Method __getattr__

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

Source from the content-addressed store, hash-verified

350 self.meters[k].update(v)
351
352 def __getattr__(self, attr):
353 if attr in self.meters:
354 return self.meters[attr]
355 if attr in self.__dict__:
356 return self.__dict__[attr]
357 raise AttributeError("'{}' object has no attribute '{}'".format(
358 type(self).__name__, attr))
359
360 def __str__(self):
361 loss_str = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected