def min_width(self) -> int:
        """Minimum width necessary to render the block's contents."""
        return max(
            max(len(e) for e in self.content.split('\n')),
            # Only horizontal lines can cross 0 width blocks.
            int(any([self.top, self.bottom]))
        )
def min_width ( self ) -> int : return max ( max ( len ( e ) for e in self . content . split ( '\n' ) ) , int ( any ( [ self . top , self . bottom ] ) ) )
Minimum width necessary to render the block's contents.