dependencies
dependencies copied to clipboard
Shield object should pass positional arguments.
from dependencies import Injector, shield, this
class ClassWithArgs:
def __init__(self, *args):
...
class Container(Injector):
foo = shield(ClassWithArgs, this.x, this.y)
x = 1
y = 2
Container.foo # will pass x and y to the class *args