You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
Instead it raises ConflictingExplicitBindingsError.
$ python ./t.py
Traceback (most recent call last):
File "./t.py", line 25, in <module>
only_use_explicit_bindings=True
File "/tmp/venv/lib/python2.7/site-packages/pinject/object_graph.py", line 159, in new_object_graph
raise e
pinject.errors.ConflictingExplicitBindingsError: multiple explicit bindings for same binding name:
the binding at ./t.py:5, from the binding name "foundation" (unannotated) to the class __main__.FoundationA at ./t.py:5, in "singleton scope" scope
the binding at ./t.py:11, from the binding name "foundation" (unannotated) to the class __main__.FoundationB at ./t.py:11, in "singleton scope" scope
Some very weird magic is happening behind the scenes, even though I've set only_use_explicit_bindings=True!
Any idea what might be wrong?
The text was updated successfully, but these errors were encountered:
I bumped into a very very weird issue.
This should print
Instead it raises
ConflictingExplicitBindingsError
.Some very weird magic is happening behind the scenes, even though I've set
only_use_explicit_bindings=True
!Any idea what might be wrong?
The text was updated successfully, but these errors were encountered: