Skip to content

Commit

Permalink
Fix runtime for python 3.13
Browse files Browse the repository at this point in the history
This change adds new python3.13 attributes to reflected ignore lists
  • Loading branch information
orenht committed Feb 20, 2025
1 parent 05fa4b5 commit 9c45e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/egglog/egraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
"__annotations__",
"__hash__",
"__qualname__",
"__firstlineno__",
"__static_attributes__",
# Ignore all reflected binary method
*REFLECTED_BINARY_METHODS.keys(),
}
Expand Down
1 change: 1 addition & 0 deletions python/egglog/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def __getattr__(self, name: str) -> RuntimeFunction | RuntimeExpr | Callable:
# Origin is used in get_type_hints which is used when resolving the class itself
"__origin__",
"__typing_unpacked_tuple_args__",
"__typing_is_unpacked_typevartuple__",
}:
raise AttributeError

Expand Down

0 comments on commit 9c45e29

Please sign in to comment.