Closed EspenAlbert closed 3 years ago
Hi!
Thank you for a pull request. Unfortunately, the tests do not pass. Please, fix them.
This is missing the latest commit that makes the tests work on 3.6. https://github.com/EspenAlbert/python-inject/commit/fe67991f12d73b1df9ac19203bbef0181c3ae6c6
First I want to say that I really like this library. Great work :)
Using a ClassVar annotation on an attribute failed for dataclasses:
raises:
inject.InjectorException: No injector is configured
I was not sure whether to change the
_AttributeInjection
or give an argument to theattr
function (something like is_dataclass). Or if this is even desired since it works when you are not using the ClassVar annotation:field = inject.attr(int)