Skip to content

Commit

Permalink
callback: remove getattr error now that the upgrade is done on all pr…
Browse files Browse the repository at this point in the history
…ojects (#261)
  • Loading branch information
skshetry authored Dec 13, 2023
1 parent 902b65c commit c01921e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/dvc_objects/fs/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ def branch(


class Callback(ScopedCallback):
def __getattr__(self, item):
if item in ["wrap_fn", "wrap_coro", "wrap_and_branch", "wrap_and_branch_coro"]:
raise AttributeError(
f"{type(self).__name__!r} object has no attribute {item!r}"
)
return super().__getattr__(item)

def relative_update(self, inc: int = 1) -> None:
inc = inc if inc is not None else 0
return super().relative_update(inc)
Expand Down

0 comments on commit c01921e

Please sign in to comment.