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

Method getInstance

service/character.py:146–150  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

144
145 @classmethod
146 def getInstance(cls):
147 if cls.instance is None:
148 cls.instance = Character()
149
150 return cls.instance
151
152 def __init__(self):
153 # Simply initializes default characters in case they aren't in the database yet

Callers 3

runMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 1

CharacterClass · 0.70

Tested by

no test coverage detected