File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -802,10 +802,10 @@ def _get_callable_bindings(callable):
802
802
803
803
if callable .__bindings__ == 'deferred' :
804
804
read_and_store_bindings (callable , _infer_injected_bindings (callable ))
805
- return callable .__bindings__
805
+ noninjectables = getattr (callable , '__noninjectables__' , set ())
806
+ return {k : v for k , v in callable .__bindings__ .items () if k not in noninjectables }
806
807
807
808
bindings = _get_callable_bindings (callable )
808
- noninjectables = getattr (callable , '__noninjectables__' , set ())
809
809
signature = inspect .signature (callable )
810
810
full_args = args
811
811
if self_ is not None :
@@ -815,7 +815,7 @@ def _get_callable_bindings(callable):
815
815
needed = dict (
816
816
(k , v )
817
817
for (k , v ) in bindings .items ()
818
- if k not in kwargs and k not in noninjectables and k not in bound_arguments .arguments
818
+ if k not in kwargs and k not in bound_arguments .arguments
819
819
)
820
820
821
821
dependencies = self .args_to_inject (
You can’t perform that action at this time.
0 commit comments