Open nrbnlulu opened 4 months ago
@nrbnlulu I think it's possible to just ignore parameters that have default arguments but honestly I'm not sure if they should be ignored or if container should try to resolve them 🤔
sig = inspect.signature(FooBase.__init__)
print(sig.parameters["bar"].default) # <factory>
I'll try to submit a PR soon
example
To get around this what you could do something like
I guess this can be solved by ignoring fields that has default factories.