dependencies icon indicating copy to clipboard operation
dependencies copied to clipboard

Constructor injection designed with OOP in mind.

Results 66 dependencies issues
Sort by recently updated
recently updated
newest added

Without defining delegated class for each separated case. Log + instance for every method call. Or cache & instance for every method call. ```python from attrs import define from attrs...

feature

Some classes would define `__new__` method in addition or instead of `__init__` method. In that case, we should analyze new method instead. All error messages should mention new method in...

feature

I need to use some virtual proxies for some complex classes and https://github.com/ionelmc/python-lazy-object-proxy provides a no effort pluggable solution. Unfortunately, https://github.com/proofit404/dependencies/blob/697f97c925419ad034efe7b416611f51fc80f97d/src/_dependencies/objects/classes.py#L36-L38 triggers the instantiation. I was wondering if there's a...

question

Sticky scopes should not support `&`, `()`. It should support `in` and `dir` on the other hand. Last statement could be solved by removing `expect.skip_if_context()` from all tests and make...

feature

```python class Container(Injector): app = App host_a, host_b = this.hosts[0], this.hosts[1] @value def hosts(): # asyncio.gather, threading.pool, etc ... ```

documentation

```python with Container as app: ... ``` This code should raise an exception since `app` was not used at all.

feature

If injector successfully executed `one`, `two` and `three` value objects setup steps and we got error in `four` setup step before we even return a sticky scope instance from context...

feature

On python 3.11 `DependencyError` could be a subclass of [exception group](https://peps.python.org/pep-0654/). See https://github.com/proofit404/dependencies/issues/132#issuecomment-1146861668 for more info.

feature