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

Method __rich_measure__

rich/bar.py:86–93  ·  view source on GitHub ↗
(
        self, console: Console, options: ConsoleOptions
    )

Source from the content-addressed store, hash-verified

84 yield Segment.line()
85
86 def __rich_measure__(
87 self, console: Console, options: ConsoleOptions
88 ) -> Measurement:
89 return (
90 Measurement(self.width, self.width)
91 if self.width is not None
92 else Measurement(4, options.max_width)
93 )

Callers 3

test_measureFunction · 0.95
test_rich_measureFunction · 0.45
test_console_widthFunction · 0.45

Calls 1

MeasurementClass · 0.85

Tested by 3

test_measureFunction · 0.76
test_rich_measureFunction · 0.36
test_console_widthFunction · 0.36