MCPcopy Index your code
hub / github.com/PostHog/posthog / InstanceSettingHelper

Class InstanceSettingHelper

posthog/api/instance_settings.py:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class InstanceSettingHelper:
30 key: str = ""
31 value: Union[str, bool, int, None] = None
32 value_type: str = ""
33 description: str = ""
34 editable: bool = False
35 is_secret: bool = False
36
37 def __init__(self, **kwargs):
38 for field in ("key", "value", "value_type", "description", "editable", "is_secret"):
39 setattr(self, field, kwargs.get(field, None))
40
41
42def get_instance_setting(key: str, setting_config: Optional[Tuple] = None) -> InstanceSettingHelper:

Callers 1

get_instance_settingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…