Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MarkinHaus_ToolBoxV2 /toolboxv2 /utils /singelton_class.py
| class Singleton(type): | |
| """ | |
| Singleton metaclass for ensuring only one instance of a class. | |
| """ | |
| _instances = {} | |
| _kwargs = {} | |
| _args = {} | |
| def __call__(cls, *args, **kwargs): | |
| if cls not in cls._instances: | |
| cls._instances[cls] = super().__call__(*args, **kwargs) | |
| cls._args[cls] = args | |
| cls._kwargs[cls] = kwargs | |
| return cls._instances[cls] | |
Xet Storage Details
- Size:
- 413 Bytes
- Xet hash:
- d94e823937863b72e9d9a1116e898fd653f2b3f92f149c7dc447e4aac02915b3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.