Skip to content

Commit

Permalink
Move some stuff into experiment (#8)
Browse files Browse the repository at this point in the history
Clean up some code move to experiment for now.
  • Loading branch information
eyurtsev authored Mar 10, 2023
1 parent cd0ddf4 commit 4f9cc3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
File renamed without changes.
9 changes: 0 additions & 9 deletions kor/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,3 @@ class Object(AbstractInput):
def accept(self, visitor: AbstractVisitor[T]) -> T:
"""Accept a visitor."""
return visitor.visit_object(self)

def merge(self, other_object: "Object") -> "Object":
all_attributes = list(self.attributes) + list(other_object.attributes)
all_examples = list(self.examples) + list(other_object.examples)
return dataclasses.replace(
self,
attributes=all_attributes,
examples=all_examples,
)

0 comments on commit 4f9cc3d

Please sign in to comment.