MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / __call__

Method __call__

HATE/basic_hate/agentverse/utils.py:63–67  ·  view source on GitHub ↗

Call method for the singleton metaclass.

(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

61 _instances = {}
62
63 def __call__(cls, *args, **kwargs):
64 """Call method for the singleton metaclass."""
65 if cls not in cls._instances:
66 cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
67 return cls._instances[cls]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected