We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This script reproduces the bug:
from typing import List from injectable import injectable, autowired, Autowired, InjectionContainer @injectable(qualifier="foo") class Foo: pass @autowired def test(foo: Autowired(List["foo"])): assert foo is not None assert len(foo) == 1 if __name__ == "__main__": InjectionContainer.load() test()
The returned error is quite cryptic:
AttributeError: '_ForwardRef' object has no attribute '__qualname__'
The text was updated successfully, but these errors were encountered:
roo-oliv
Successfully merging a pull request may close this issue.
This script reproduces the bug:
The returned error is quite cryptic:
AttributeError: '_ForwardRef' object has no attribute '__qualname__'
The text was updated successfully, but these errors were encountered: