Skip to content

Commit b37f147

Browse files
authored
Add __str__
1 parent b89b54f commit b37f147

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyiceberg/expressions/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ def __new__(cls, child: BooleanExpression, **_: Any) -> BooleanExpression: # ty
362362
obj = super().__new__(cls)
363363
return obj
364364

365+
def __str__(self) -> str:
366+
"""Return the string representation of the Not class."""
367+
return f"Not(child={self.child})"
368+
365369
def __repr__(self) -> str:
366370
"""Return the string representation of the Not class."""
367371
return f"Not(child={repr(self.child)})"

0 commit comments

Comments
 (0)