class_docstr: Stores the minimum and maximum widths (in characters) required to render an object.
class_docstr_tok: ["Stores","the","minimum","and","maximum","widths","(","in","characters",")","required","to","render","an","object","."]
docstr: Get a RenderableWith where the widths are <= width.
  
  Args:
      width (int): Maximum desired width.
  
  Returns:
      Measurement: New Measurement object.
docstr_tok: ["Get","a","RenderableWith","where","the","widths","are","<","=","width",".","Args",":","width","(","int",")",":","Maximum","desired","width",".","Returns",":","Measurement",":","New","Measurement","object","."]
code: def with_maximum(self, width: int) -> "Measurement":
      """Get a RenderableWith where the widths are <= width.
  
      Args:
          width (int): Maximum desired width.
  
      Returns:
          Measurement: New Measurement object.
      """
      minimum, maximum = self
      return Measurement(min(minimum, width), min(maximum, width))
  
file_path: rich/rich/measure.py
imports: from operator import itemgetter
  from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Sequence
  from .None import errors
  from .protocol import is_renderable, rich_cast
label_desc: Use image node_id 3 for calling the Measurement obj's underlying member method code with example usage: obj.with_maximum(width) and returns: Measurement