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

Method to_info_dict

src/click/core.py:1076–1085  ·  view source on GitHub ↗
(self, ctx: Context)

Source from the content-addressed store, hash-verified

1074 self.deprecated = deprecated
1075
1076 def to_info_dict(self, ctx: Context) -> dict[str, t.Any]:
1077 return {
1078 "name": self.name,
1079 "params": [param.to_info_dict() for param in self.get_params(ctx)],
1080 "help": self.help,
1081 "epilog": self.epilog,
1082 "short_help": self.short_help,
1083 "hidden": self.hidden,
1084 "deprecated": self.deprecated,
1085 }
1086
1087 def __repr__(self) -> str:
1088 return f"<{self.__class__.__name__} {self.name}>"

Callers

nothing calls this directly

Calls 2

get_paramsMethod · 0.95
to_info_dictMethod · 0.45

Tested by

no test coverage detected