Closed adriangb closed 2 years ago
There's no particular reason for this have to be __call__
. But at the same time this has to be done by convention, not configuration, because otherwise you'd need some way to inject that configuration at which point you might as well use a Dependant
marker.
So maybe we should call this __di_new__
, __di_construct__
or something like that? It would also save us a bit of introspection because we can just say "if the object is a class and has this attribute, use that".
Codecov Report
97.59% <100.00%> (+0.18%)
100.00% <100.00%> (ø)
100.00% <100.00%> (ø)