dependencies
dependencies copied to clipboard
Shield object should hide **kwargs check.
Follow up of the #427
from dependencies import Injector, shield, this
class ClassWithKwargs:
def __init__(self, x, y, **kwargs):
...
class Container(Injector):
foo = shield(ClassWithKwargs)
x = 1
y = 2
Container.foo # will pass x and y to the class constructor ignoring **kwargs
Error message of ClassWithKwargs should suggest shield object.