MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

pager_lib/tqdm/utils.py:213–220  ·  view source on GitHub ↗
(self, wrapped, tqdm_instance)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

disable_on_exceptionMethod · 0.95
wrapper_setattrMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected