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

Class Namespace

fire/docstrings.py:79–92  ·  view source on GitHub ↗

A dict with attribute (dot-notation) access enabled.

Source from the content-addressed store, hash-verified

77
78
79class Namespace(dict):
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
89
90 def __delattr__(self, key):
91 if key in self:
92 del self[key]
93
94
95class Sections(enum.Enum):

Callers 4

__getattr__Method · 0.85
parseFunction · 0.85
_create_line_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected