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
Hello!
I am trying create providers.Dict with non-string keys and getting TypeError: set_kwargs() keywords must be strings. Is this error? Or maybe am I doing something wrong?
providers.Dict
TypeError: set_kwargs() keywords must be strings
from dependency_injector import providers from dependency_injector.containers import DeclarativeContainer class SomeClass: pass class ExampleContainer(DeclarativeContainer): some_dict = providers.Dict({ SomeClass: providers.Factory(SomeClass), 'key.with.periods': providers.Factory(SomeClass), 'key-with-dashes': providers.Factory(SomeClass), }) if __name__ == '__main__': container = ExampleContainer() container.some_dict()
The text was updated successfully, but these errors were encountered:
Hi @daniel55411 ,
Fixed in version 4.31.2. Thanks for reporting the issue. It's a regression of one of the recent changes. I'm sorry it was there.
4.31.2
Best, Roman
Sorry, something went wrong.
rmk135
No branches or pull requests
Hello!
I am trying create
providers.Dict
with non-string keys and gettingTypeError: set_kwargs() keywords must be strings
. Is this error? Or maybe am I doing something wrong?The text was updated successfully, but these errors were encountered: