Skip to content

Commit

Permalink
tqdm: remove wrap_fn (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Jan 2, 2024
1 parent 7847703 commit 93d4482
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/dvc_objects/_tqdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,6 @@ def close(self):
)
super().close()

def wrap_fn(self, fn, callback=None):
"""
Returns a wrapped `fn` which calls `callback()` on each call.
`callback` is `self.update` by default.
"""
if callback is None:
callback = self.update

def wrapped(*args, **kwargs):
res = fn(*args, **kwargs)
callback()
return res

return wrapped

@property
def format_dict(self):
"""inject `ncols_desc` to fill the display width (`ncols`)"""
Expand Down

0 comments on commit 93d4482

Please sign in to comment.