                  pbar.update(len(buffer))
                  out_file.write(buffer)
              pbar.close()
  
      def _unzip_model(self):
          """ Unzip the model file to the cache folder """
          self.logger.info("Extracting: '%s'", self._model_name)
          try:
              with zipfile.ZipFile(self._model_zip_path, "r") as zip_file:
                  self._write_model(zip_file)
 
</s> remove     def _write_model(self, zip_file):
 </s> add     def _write_model(self, zip_file: zipfile.ZipFile) -> None: </s> remove     def _download_model(self):
 </s> add     def _download_model(self) -> None: </s> remove         self.logger.trace(retval)
 </s> add         self.logger.trace(retval)  # type: ignore </s> remove         zip_file: str
 </s> add         zip_file: :class:`zipfile.ZipFile` </s> remove     def _model_exists(self):
 </s> add     def _model_exists(self) -> bool:
    def _unzip_model(self) -> None:
                  pbar.update(len(buffer))
                  out_file.write(buffer)
              pbar.close()
  
    def _unzip_model(self) -> None:
          """ Unzip the model file to the cache folder """
          self.logger.info("Extracting: '%s'", self._model_name)
          try:
              with zipfile.ZipFile(self._model_zip_path, "r") as zip_file:
                  self._write_model(zip_file)
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py