MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / __getattr__

Method __getattr__

core/settings.py:87–94  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

85 self.user_config = {}
86
87 def __getattr__(self, attr):
88 if attr in self.user_config:
89 return self.user_config[attr]
90 if attr in self.default_config:
91 return self.default_config[attr]
92 raise AttributeError(
93 f"'{self.__class__.__name__}' object has no attribute '{attr}'"
94 )
95
96 def __setattr__(self, key, value):
97 if key in ["default_config", "user_config"]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected