class_docstr: Draw space around content.
  
  Example:
      >>> print(Padding("Hello", (2, 4), style="on blue"))
  
  Args:
      renderable (RenderableType): String or other renderable.
      pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders.
          May be specified with 1, 2, or 4 integers (CSS style).
      style (Union[str, Style], optional): Style for padding characters. Defaults to "none".
      expand (bool, optional): Expand padding to fit available width. Defaults to True.
class_docstr_tok: ["Draw","space","around","content",".","Example",":",">",">",">","print","(","Padding","(","``","Hello","''",",","(","2",",","4",")",",","style=","''","on","blue","''",")",")","Args",":","renderable","(","RenderableType",")",":","String","or","other","renderable",".","pad","(","Union","[","int",",","Tuple","[","int","]","]",")",":","Padding","for","top",",","right",",","bottom",",","and","left","borders",".","May","be","specified","with","1",",","2",",","or","4","integers","(","CSS","style",")",".","style","(","Union","[","str",",","Style","]",",","optional",")",":","Style","for","padding","characters",".","Defaults","to","``","none","''",".","expand","(","bool",",","optional",")",":","Expand","padding","to","fit","available","width",".","Defaults","to","True","."]
code: def __init__(
      self,
      renderable: "RenderableType",
      pad: "PaddingDimensions" = (0, 0, 0, 0),
      *,
      style: Union[str, Style] = "none",
      expand: bool = True,
  ):
      self.renderable = renderable
      self.top, self.right, self.bottom, self.left = self.unpack(pad)
      self.style = style
      self.expand = expand
  
file_path: rich/rich/padding.py
imports: from typing import cast, List, Optional, Tuple, TYPE_CHECKING, Union
  from .jupyter import JupyterMixin
  from .measure import Measurement
  from .style import Style
  from .segment import Segment
label_desc: Use image node_id 1 to create a new Padding object from inherited base classes: JupyterMixin with example: obj = Padding(renderable, pad)