MCPcopy
hub / github.com/Textualize/rich / get_plain_headed_box

Method get_plain_headed_box

rich/box.py:85–93  ·  view source on GitHub ↗

If this box uses special characters for the borders of the header, then return the equivalent box that does not. Returns: Box: The most similar Box that doesn't use header-specific box characters. If the current Box already satisfies this criterion, then

(self)

Source from the content-addressed store, hash-verified

83 return box
84
85 def get_plain_headed_box(self) -> "Box":
86 """If this box uses special characters for the borders of the header, then
87 return the equivalent box that does not.
88
89 Returns:
90 Box: The most similar Box that doesn't use header-specific box characters.
91 If the current Box already satisfies this criterion, then it's returned.
92 """
93 return PLAIN_HEADED_SUBSTITUTIONS.get(self, self)
94
95 def get_top(self, widths: Iterable[int]) -> str:
96 """Get the top of a simple box.

Callers 1

_renderMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected