Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import ABC
- class ProgressBar(ABC):
- @abstractmethod
- def update(self, amount: int = 1):
- pass
- @abstractmethod
- def close(self):
- pass
- def __enter__(self):
- return self
- def __exit__(self, exc_type, exc_value, exc_tb):
- self.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement