MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

service/settings.py:336–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 return cls._instance
335
336 def __init__(self):
337 # Settings
338 # Updates are completely suppressed via network settings
339 # prerelease - If True, suppress prerelease notifications
340 # version - Set to release tag that user does not want notifications for
341 serviceUpdateDefaultSettings = {"prerelease": True, 'version': None}
342 self.serviceUpdateSettings = SettingsProvider.getInstance().getSettings(
343 "pyfaServiceUpdateSettings",
344 serviceUpdateDefaultSettings
345 )
346
347 def get(self, type):
348 return self.serviceUpdateSettings[type]

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected