(self, patch: 'ParsedNodePatch')
Given a ParsedNodePatch, add the new information to the node.
Given a ParsedNodePatch, add the new information to the node.
Given a ParsedNodePatch add the new information to the node .
def patch(self, patch: 'ParsedNodePatch'):
        """Given a ParsedNodePatch, add the new information to the node."""
        # explicitly pick out the parts to update so we don't inadvertently
        # step on the model name or anything
        # Note: config should already be updated
        self.patch_path: Optional[str] = patch.file_id
        # update created_at so process_docs will run in partial parsing
        self.created_at = time.time()
        self.description = patch.description
        self.columns = patch.columns
        self.meta = patch.meta
        self.docs = patch.docs
def patch ( self , patch : 'ParsedNodePatch' ) : # explicitly pick out the parts to update so we don't inadvertently # step on the model name or anything # Note: config should already be updated self . patch_path : Optional [ str ] = patch . file_id # update created_at so process_docs will run in partial parsing self . created_at = time . time ( ) self . description = patch . description self . columns = patch . columns self . meta = patch . meta self . docs = patch . docs