(self, wrapped, tqdm_instance)
| 211 | return inner |
| 212 | |
| 213 | def __init__(self, wrapped, tqdm_instance): # noqa: B042 |
| 214 | super().__init__(wrapped) |
| 215 | if hasattr(wrapped, 'write'): |
| 216 | self.wrapper_setattr( |
| 217 | 'write', self.disable_on_exception(tqdm_instance, wrapped.write)) |
| 218 | if hasattr(wrapped, 'flush'): |
| 219 | self.wrapper_setattr( |
| 220 | 'flush', self.disable_on_exception(tqdm_instance, wrapped.flush)) |
| 221 | |
| 222 | def __eq__(self, other): |
| 223 | return self._wrapped == getattr(other, '_wrapped', other) |
nothing calls this directly
no test coverage detected