parameters: (self, li)
return_statement: return size
docstring: Returns the size of a section by taking into account the new push
          button. Override of QTableView::sectionSizeFromContents used to adapt
          the sections size to their contents.
  
          Args:
              li (int): section logical index
  
          Returns:
              (QSize): section size
docstring_summary: Returns the size of a section by taking into account the new push
          button. Override of QTableView::sectionSizeFromContents used to adapt
          the sections size to their contents.
docstring_tokens: Returns the size of a section by taking into account the new push button . Override of QTableView :: sectionSizeFromContents used to adapt the sections size to their contents .
function: def sectionSizeFromContents(self, li):
          """
          Returns the size of a section by taking into account the new push
          button. Override of QTableView::sectionSizeFromContents used to adapt
          the sections size to their contents.
  
          Args:
              li (int): section logical index
  
          Returns:
              (QSize): section size
          """
          size = super(DrillHeaderView, self).sectionSizeFromContents(li)
          margin = self.style().pixelMetric(QStyle.PM_HeaderMargin, None, self)
          size.setWidth(size.width() + self.BUTTON_SIZE + margin + 1)
          return size
function_tokens: def sectionSizeFromContents ( self , li ) : size = super ( DrillHeaderView , self ) . sectionSizeFromContents ( li ) margin = self . style ( ) . pixelMetric ( QStyle . PM_HeaderMargin , None , self ) size . setWidth ( size . width ( ) + self . BUTTON_SIZE + margin + 1 ) return size