MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / __new__

Method __new__

config/settings.py:139–143  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

137 _instance = None
138 __setting_key__ = None
139 def __new__(cls, *args, **kwargs):
140 if not cls._instance:
141 cls._instance = super().__new__(cls,*args, **kwargs)
142
143 return cls._instance
144
145 def _get_value(self, key)->str:
146 setting = Settings.setting[self.__setting_key__]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected