MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / SettingsProxy

Class SettingsProxy

beanhub_cli/forms/app/settings.py:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class SettingsProxy:
23 def __init__(self, get_settings: typing.Callable[[], Settings]):
24 self._get_settings = get_settings
25
26 def __getattr__(self, item: str) -> typing.Any:
27 global_settings = self._get_settings()
28 return getattr(global_settings, item)
29
30
31settings: Settings = SettingsProxy(lambda: _settings)

Callers 1

settings.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected