Skip to content

Commit c1b1771

Browse files
Finish changing typevar to use Python form
1 parent 6f92784 commit c1b1771

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/egglog/runtime.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ def __getattr__(self, name: str) -> RuntimeFunction | RuntimeExpr | Callable:
281281
def __str__(self) -> str:
282282
return str(self.__egg_tp__)
283283

284+
def __repr__(self) -> str:
285+
return str(self)
286+
284287
# Make hashable so can go in Union
285288
def __hash__(self) -> int:
286289
return hash((id(self.__egg_decls_thunk__), self.__egg_tp__))

0 commit comments

Comments
 (0)