David Pärsson
David Pärsson
That sounds very reasonable to me.
I haven't used `auto_bind=False`, and I can't really tell the intricate details from the documentation, but if an `@inject` decorated class would be injected, along with those explicitly bound and...
I came to think of another case, but it might be slightly academic. With the suggested change, is there a way to have a class that has dependencies (with an...
If I remember correctly, class based Celery tasks (as in the code linked above) are kind of like singletons, so a single instance of a task class may be used...
I missed that, sorry, and thanks!
Making Injector consider default arguments might get unwanted consequences for optional arguments (where `None` is the default), so it's possible that a new decorator would be a better solution for...
That being said, using the default values would be intuitive in _most_ cases.
#116 is also related to that.
@jstasiak, the short answer from me is primarily for configuration. My use case was that I had some default string/numeric configuration that normally shouldn't be overridden, except with specific values...
While raising for a default value would remove the confusion, it will remove the ability to have default values which might complicate setup in tests when injector is not used....