class_docstr: A helper class for displaying progress.
class_docstr_tok: ["A","helper","class","for","displaying","progress","."]
code: def __init__(
      self, file: IO[bytes], callback: Optional["ProgressFn"] = None
  ) -> None:
      self.file = file
      if callback is None:
  
          def callback_(new_bytes: int, total_bytes: int) -> None:
              pass
  
          callback = callback_
  
      self.callback: ProgressFn = callback
      self.bytes_read = 0
      self.len = os.fstat(file.fileno()).st_size
  
file_path: wandb/wandb/sdk/internal/progress.py
imports: import os
  import sys
  from typing import IO, TYPE_CHECKING, Optional
  from wandb.errors import CommError
label_desc: Use image node_id 1 to create a new Progress object  with example: obj = Progress(file, callback)