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

Class TyperInfo

typer/models.py:235–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234
235class TyperInfo:
236 def __init__(
237 self,
238 typer_instance: Optional["Typer"] = Default(None),
239 *,
240 name: str | None = Default(None),
241 cls: type["TyperGroup"] | None = Default(None),
242 invoke_without_command: bool = Default(False),
243 no_args_is_help: bool = Default(False),
244 subcommand_metavar: str | None = Default(None),
245 chain: bool = Default(False),
246 result_callback: Callable[..., Any] | None = Default(None),
247 # Command
248 context_settings: dict[Any, Any] | None = Default(None),
249 callback: Callable[..., Any] | None = Default(None),
250 help: str | None = Default(None),
251 epilog: str | None = Default(None),
252 short_help: str | None = Default(None),
253 options_metavar: str = Default("[OPTIONS]"),
254 add_help_option: bool = Default(True),
255 hidden: bool = Default(False),
256 deprecated: bool = Default(False),
257 # Rich settings
258 rich_help_panel: str | None = Default(None),
259 ):
260 self.typer_instance = typer_instance
261 self.name = name
262 self.cls = cls
263 self.invoke_without_command = invoke_without_command
264 self.no_args_is_help = no_args_is_help
265 self.subcommand_metavar = subcommand_metavar
266 self.chain = chain
267 self.result_callback = result_callback
268 self.context_settings = context_settings
269 self.callback = callback
270 self.help = help
271 self.epilog = epilog
272 self.short_help = short_help
273 self.options_metavar = options_metavar
274 self.add_help_option = add_help_option
275 self.hidden = hidden
276 self.deprecated = deprecated
277 self.rich_help_panel = rich_help_panel
278
279
280class ParameterInfo:

Callers 7

test_help_from_infoFunction · 0.90
test_defaults_from_infoFunction · 0.90
__init__Method · 0.85
decoratorMethod · 0.85
add_typerMethod · 0.85
get_groupFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_help_from_infoFunction · 0.72
test_defaults_from_infoFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…