Repository navigation
v1.4.0
New Features:
di.injectnow explicitly sets__signature__attribute of the underlying func. This new signature contains all the original function params except those havingAnnotated[...] type hint.
Example:
@di.inject
def func(p1: int, p2: Annnotated[str, some_dependency]): ...
assert inspect.signature(func).parameters.keys() == {"p1"}