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

Method __rich_measure__

rich/constrain.py:31–37  ·  view source on GitHub ↗
(
        self, console: "Console", options: "ConsoleOptions"
    )

Source from the content-addressed store, hash-verified

29 yield from console.render(self.renderable, child_options)
30
31 def __rich_measure__(
32 self, console: "Console", options: "ConsoleOptions"
33 ) -> "Measurement":
34 if self.width is not None:
35 options = options.update_width(self.width)
36 measurement = Measurement.get(console, options, self.renderable)
37 return measurement

Callers 1

test_width_of_noneFunction · 0.95

Calls 2

update_widthMethod · 0.80
getMethod · 0.45

Tested by 1

test_width_of_noneFunction · 0.76