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

Method indentation

src/click/formatting.py:289–295  ·  view source on GitHub ↗

A context manager that increases the indentation.

(self)

Source from the content-addressed store, hash-verified

287
288 @contextmanager
289 def indentation(self) -> cabc.Generator[None]:
290 """A context manager that increases the indentation."""
291 self.indent()
292 try:
293 yield
294 finally:
295 self.dedent()
296
297 def getvalue(self) -> str:
298 """Returns the buffer contents."""

Callers 2

format_help_textMethod · 0.80
format_epilogMethod · 0.80

Calls 2

indentMethod · 0.95
dedentMethod · 0.95

Tested by

no test coverage detected