(self)
Return the current selected item (file) or None if there is no
        current item.
Return the current selected item (file) or None if there is no
        current item.
Return the current selected item ( file ) or None if there is no current item .
def current_item(self):
        # type: () -> Optional[ImportItem]
        """
        Return the current selected item (file) or None if there is no
        current item.
        """
        idx = self.recent_combo.currentIndex()
        if idx == -1:
            return None

        item = self.recent_combo.model().item(idx)  # type: QStandardItem
        if isinstance(item, ImportItem):
            return item
        else:
            return None
def current_item ( self ) : # type: () -> Optional[ImportItem] idx = self . recent_combo . currentIndex ( ) if idx == - 1 : return None item = self . recent_combo . model ( ) . item ( idx ) # type: QStandardItem if isinstance ( item , ImportItem ) : return item else : return None