code: def unbind(self, dependency, svc, svc_ref):
          # type: (Any, Any, ServiceReference) -> None
          
          with self._lock:
              # Invalidate first (if needed)
              self.check_lifecycle()
  
              # Call unbind() and remove the injection
              self.__unset_binding(dependency, svc, svc_ref)
  
              # Try a new configuration
              if self.update_bindings():
                  self.check_lifecycle()
docs: Called by a dependency manager to remove an injected service and to
          update the component life cycle.