MCPcopy
hub / github.com/Textualize/textual / print_component_classes

Function print_component_classes

tools/widget_documentation.py:37–54  ·  view source on GitHub ↗

Print a table to document these component classes. The table contains two columns, one with the component class name and another for the description of what the component class is for. The second column is always empty.

(classes: set[str])

Source from the content-addressed store, hash-verified

35
36
37def print_component_classes(classes: set[str]) -> None:
38 """Print a table to document these component classes.
39
40 The table contains two columns, one with the component class name and another
41 for the description of what the component class is for.
42 The second column is always empty.
43 """
44 if classes:
45 print("COMPONENT_CLASSES")
46 print('"""')
47 print("| Class | Description |")
48 print("| :- | :- |")
49
50 for cls in sorted(classes):
51 print(f"| `{cls}` | XXX |")
52
53 if classes:
54 print('"""')
55
56
57def main() -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…