MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / dir_additions

Method dir_additions

src/pymgrid/modules/module_container.py:288–298  ·  view source on GitHub ↗

:meta private:

(self)

Source from the content-addressed store, hash-verified

286 raise AttributeError(f"No module has attribute '{attr_name}'.")
287
288 def dir_additions(self):
289 """
290 :meta private:
291 """
292 additions = set(self.keys())
293 for x in self.values():
294 try:
295 additions.update(x.dir_additions)
296 except AttributeError:
297 pass
298 return additions
299
300 def __getitem__(self, item):
301 if item == 'data' or item == 'module_dict':

Callers 1

__init__Method · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected