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

Method span

rich/measure.py:20–22  ·  view source on GitHub ↗

Get difference between maximum and minimum.

(self)

Source from the content-addressed store, hash-verified

18
19 @property
20 def span(self) -> int:
21 """Get difference between maximum and minimum."""
22 return self.maximum - self.minimum
23
24 def normalize(self) -> "Measurement":
25 """Get measurement that ensures that minimum <= maximum and minimum >= 0

Callers 6

highlight_wordsMethod · 0.80
flatten_spansMethod · 0.80
highlightMethod · 0.80
_ansi_tokenizeFunction · 0.80
_parseFunction · 0.80
wordsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected