davebirch
davebirch
Sorry, hit enter too early - edited the OP to include an example.
As an interesting point of note, if I change the binding to bind to the exact generic type specified in the injectable class GenericClass[str], the same exception is thrown, but...
Hehe, that makes some sense, yeah, gotta love a happy accident. Still not quite got to the bottom of why it works in 3.6, but need to spend some time...
I understand there may be some issues with allowing injection of function protocols functionally, they would seem to be a reasonable use-case, when backed by a Protocol (I understand a...
@JosXa just having another read of your requirements, I have an idea you might want to try. Given that the thing you want to inject is a function, which stores...
Thirding that this would be of use for my alliance too.
If this is still for consideration, attrs now support an `@define` decorator, as well as `@attr.s`.