Skip to content

Commit

Permalink
Partial revert
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Mar 10, 2024
1 parent 7968786 commit 541fc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asyncclick/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def call_on_close(self, f: t.Callable[..., t.Any]) -> t.Callable[..., t.Any]:
:param f: The function to execute on teardown.
"""
return self._ctx_mgr.callback(f)
return self._exit_stack.callback(f)

def close(self) -> None:
"""Invoke all close callbacks registered with
Expand Down

0 comments on commit 541fc28

Please sign in to comment.