(self, idx, val)
the comments after the insertion have to move forward
the comments after the insertion have to move forward
the comments after the insertion have to move forward
def insert(self, idx, val):
        # type: (Any, Any) -> None
        """the comments after the insertion have to move forward"""
        list.insert(self, idx, val)
        for list_index in sorted(self.ca.items, reverse=True):
            if list_index < idx:
                break
            self.ca.items[list_index + 1] = self.ca.items.pop(list_index)
def insert ( self , idx , val ) : # type: (Any, Any) -> None list . insert ( self , idx , val ) for list_index in sorted ( self . ca . items , reverse = True ) : if list_index < idx : break self . ca . items [ list_index + 1 ] = self . ca . items . pop ( list_index )