MCPcopy
hub / github.com/Textualize/rich / __exit__

Method __exit__

rich/progress.py:202–208  ·  view source on GitHub ↗
(
        self,
        exc_type: Optional[Type[BaseException]],
        exc_val: Optional[BaseException],
        exc_tb: Optional[TracebackType],
    )

Source from the content-addressed store, hash-verified

200 return self
201
202 def __exit__(
203 self,
204 exc_type: Optional[Type[BaseException]],
205 exc_val: Optional[BaseException],
206 exc_tb: Optional[TracebackType],
207 ) -> None:
208 self.close()
209
210 def __iter__(self) -> BinaryIO:
211 return self

Callers 1

__exit__Method · 0.45

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected