abbreviatable

Contents

abbreviatable#

treescope.rendering_parts.abbreviatable(child: RenderableTreePart, abbreviation: RenderableTreePart | None = None) RenderableTreePart[source]#

Marks an object as being able to be abbreviated.

Parameters:
  • object – The object to mark as abbreviatable. This will be replaced by the fallback if the object is past the current abbreviation depth.

  • abbreviation – The fallback to use if the object is abbreviated.