def __init__(self, ui, inp):
        """
        display buffer with more info about object 'inp'

        :param ui: UI instance
        :param inp: Buffer, Command instance
        """
        self.ui = ui
        if isinstance(inp, Buffer):
            self.display_name += "({})".format(inp.display_name)
            self.widget = HelpBufferView(ui, inp, self.global_keybinds)
        elif isinstance(inp, Command):
            self.display_name += "({})".format(inp.name)
            self.widget = HelpCommandView(ui, inp)

        super().__init__()
def __init__ ( self , ui , inp ) : self . ui = ui if isinstance ( inp , Buffer ) : self . display_name += "({})" . format ( inp . display_name ) self . widget = HelpBufferView ( ui , inp , self . global_keybinds ) elif isinstance ( inp , Command ) : self . display_name += "({})" . format ( inp . name ) self . widget = HelpCommandView ( ui , inp ) super ( ) . __init__ ( )
display buffer with more info about object 'inp'

        :param ui: UI instance
        :param inp: Buffer, Command instance