MCPcopy
hub / github.com/fastapi/typer / show

Method show

typer/_click/exceptions.py:37–45  ·  view source on GitHub ↗
(self, file: IO[Any] | None = None)

Source from the content-addressed store, hash-verified

35 return self.message
36
37 def show(self, file: IO[Any] | None = None) -> None:
38 if file is None:
39 file = get_text_stderr()
40
41 echo(
42 f"Error: {self.format_message()}",
43 file=file,
44 color=self.show_color,
45 )
46
47
48class UsageError(ClickException):

Callers

nothing calls this directly

Calls 3

format_messageMethod · 0.95
get_text_stderrFunction · 0.85
echoFunction · 0.85

Tested by

no test coverage detected