          """ Extract files from zip file and write, with progress bar.
  
          Parameters
          ----------
          zip_file: str
              The downloaded model zip file
          """
          length = sum(f.file_size for f in zip_file.infolist())
          fnames = zip_file.namelist()
          self.logger.debug("Zipfile: Filenames: %s, Total Size: %s", fnames, length)
 
</s> remove     def _write_model(self, zip_file):
 </s> add     def _write_model(self, zip_file: zipfile.ZipFile) -> None: </s> remove         response: :class:`urllib.request.urlopen`
 </s> add         response: :class:`http.client.HTTPResponse` </s> remove     def _write_zipfile(self, response, downloaded_size):
 </s> add     def _write_zipfile(self, response: "HTTPResponse", downloaded_size: int) -> None: </s> remove     def model_path(self):
        """ str: The model path(s) in the cache folder. """
        retval = [os.path.join(self._cache_dir, fname) for fname in self._model_filename]
        retval = retval[0] if len(retval) == 1 else retval
        self.logger.trace(retval)
 </s> add     def model_path(self) -> Union[str, List[str]]:
        """ str or list: The model path(s) in the cache folder. """
        paths = [os.path.join(self._cache_dir, fname) for fname in self._model_filename]
        retval: Union[str, List[str]] = paths[0] if len(paths) == 1 else paths
        self.logger.trace(retval)  # type: ignore </s> remove         length = int(response.getheader("content-length")) + downloaded_size
 </s> add         content_length = response.getheader("content-length")
        content_length = "0" if content_length is None else content_length
        length = int(content_length) + downloaded_size
        zip_file: :class:`zipfile.ZipFile`
          """ Extract files from zip file and write, with progress bar.
  
          Parameters
          ----------
        zip_file: :class:`zipfile.ZipFile`
              The downloaded model zip file
          """
          length = sum(f.file_size for f in zip_file.infolist())
          fnames = zip_file.namelist()
          self.logger.debug("Zipfile: Filenames: %s, Total Size: %s", fnames, length)
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py