(self, pos, key, value, comment=None)
insert key value into given position
        attach comment if provided
insert key value into given position
        attach comment if provided
insert key value into given position attach comment if provided
def insert(self, pos, key, value, comment=None):
        # type: (Any, Any, Any, Optional[Any]) -> None
        """insert key value into given position
        attach comment if provided
        """
        ordereddict.insert(self, pos, key, value)
        self._ok.add(key)
        if comment is not None:
            self.yaml_add_eol_comment(comment, key=key)
def insert ( self , pos , key , value , comment = None ) : # type: (Any, Any, Any, Optional[Any]) -> None ordereddict . insert ( self , pos , key , value ) self . _ok . add ( key ) if comment is not None : self . yaml_add_eol_comment ( comment , key = key )