MCPcopy
hub / github.com/pallets/click / close

Method close

src/click/core.py:685–690  ·  view source on GitHub ↗

Invoke all close callbacks registered with :meth:`call_on_close`, and exit all context managers entered with :meth:`with_resource`.

(self)

Source from the content-addressed store, hash-verified

683 return self._exit_stack.callback(f)
684
685 def close(self) -> None:
686 """Invoke all close callbacks registered with
687 :meth:`call_on_close`, and exit all context managers entered
688 with :meth:`with_resource`.
689 """
690 self._close_with_exception_info(None, None, None)
691
692 def _close_with_exception_info(
693 self,

Callers 10

exitMethod · 0.95
_pipepagerFunction · 0.45
_tempfilepagerFunction · 0.45
open_urlFunction · 0.45
raw_terminalFunction · 0.45
cliFunction · 0.45
_symlinks_supportedFunction · 0.45

Calls 1

Tested by 5

cliFunction · 0.36
_symlinks_supportedFunction · 0.36