MCPcopy
hub / github.com/google/python-fire / __getattr__

Method __getattr__

fire/docstrings.py:82–85  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

80 """A dict with attribute (dot-notation) access enabled."""
81
82 def __getattr__(self, key):
83 if key not in self:
84 self[key] = Namespace()
85 return self[key]
86
87 def __setattr__(self, key, value):
88 self[key] = value

Callers

nothing calls this directly

Calls 1

NamespaceClass · 0.85

Tested by

no test coverage detected