MCPcopy Create free account
hub / github.com/LabPy/lantz / __getattr__

Method __getattr__

lantz/feat.py:448–454  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

446 super().__setattr__('key', key)
447
448 def __getattr__(self, item):
449 modifiers = _dget(self.feat.modifiers, self.instance, self.key)
450
451 if item not in modifiers:
452 return getattr(self.feat, item)
453
454 return modifiers[item]
455
456 def __setattr__(self, item, value):
457 _modifiers = _dget(self.feat.modifiers, MISSING, MISSING)

Callers

nothing calls this directly

Calls 1

_dgetFunction · 0.70

Tested by

no test coverage detected