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
import functools | |
from inspect import signature, Parameter | |
# Dict to store our dependencies | |
__dependencies__ = {} | |
def register_dependency(dependency: object) -> None: | |
# Get the class name to use it as an id in our dependencies dict | |
cls_name = dependency.__class__.__name__ |