-
-
Save maliciousgroup/bf75f6983309e5baf0515799a44c4965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module_registry: dict = {} | |
class ModuleRegistry(object): | |
@staticmethod | |
def register_module(cls) -> None: | |
if cls.__name__ not in module_registry: | |
module_registry[cls.__name__] = cls | |
@staticmethod | |
def dump_register() -> dict: | |
return module_registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment