-
-
Save maliciousgroup/17a93142ab471cb6b37191cee2768ca5 to your computer and use it in GitHub Desktop.
CommandRegistry.py
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
global_command_registry: dict = {} | |
class CommandRegistry(object): | |
def __init__(self, cls): | |
if cls.__name__ not in global_command_registry: | |
global_command_registry[cls.__name__] = cls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment