diff --git a/injector/__init__.py b/injector/__init__.py index aa18339..5337da7 100644 --- a/injector/__init__.py +++ b/injector/__init__.py @@ -387,8 +387,6 @@ class Binder: return InstanceProvider(ProviderOf(self.injector, target)) elif isinstance(to, Provider): return to - elif isinstance(interface, Provider): - return interface elif isinstance( to, (