refactor: re-arrange some imports.

This commit is contained in:
UpstreamData
2024-01-25 16:25:25 -07:00
parent a9135e21d4
commit 66be443dc3
5 changed files with 58 additions and 122 deletions

View File

@@ -18,15 +18,6 @@ from copy import deepcopy
from pyasic.errors import APIError
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
def api_min_version(version: str):
def decorator(func):
# handle the inner function that the decorator is wrapping