Spaces:
Running
on
Zero
Running
on
Zero
File size: 293 Bytes
717b269 |
1 2 3 4 5 6 7 8 9 |
import importlib
from tgs.utils.typing import *
def find(cls_string) -> Type:
module_string = ".".join(cls_string.split(".")[:-1])
cls_name = cls_string.split(".")[-1]
module = importlib.import_module(module_string, package=None)
cls = getattr(module, cls_name)
return cls |