parameters: (dimensions: List[Dimension])
return_statement: return Dimension(min=min, max=max, preferred=preferred)
docstring: Sum a list of :class:`.Dimension` instances.
docstring_summary: Sum a list of :class:`.Dimension` instances.
docstring_tokens: Sum a list of : class : . Dimension instances .
function: def sum_layout_dimensions(dimensions: List[Dimension]) -> Dimension:
      """
      Sum a list of :class:`.Dimension` instances.
      """
      min = sum(d.min for d in dimensions)
      max = sum(d.max for d in dimensions)
      preferred = sum(d.preferred for d in dimensions)
  
      return Dimension(min=min, max=max, preferred=preferred)
function_tokens: def sum_layout_dimensions ( dimensions : List [ Dimension ] ) -> Dimension : min = sum ( d . min for d in dimensions ) max = sum ( d . max for d in dimensions ) preferred = sum ( d . preferred for d in dimensions ) return Dimension ( min = min , max = max , preferred = preferred )