-
Notifications
You must be signed in to change notification settings - Fork 4
Add a simple contract system to the time travel debugger. #1565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🥷 Code experts: sritchie sritchie, sharlaon have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a cool addition! The code looks reasonable to me, just some more docstrings would be nice. Also adding a test could be good as it would also serve as documentation of the interface.
|
||
|
||
@Pytree.dataclass | ||
class Breakpoint(Generic[R, S], Pytree): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a docstring?
@@ -77,21 +134,15 @@ def _cont_prim_call(brk_pt, *args): | |||
return initial_style_bind(record_p)(_cont_prim_call)(self, *args) | |||
|
|||
|
|||
def rec( | |||
def brk( | |||
callable: Callable[..., R], | |||
debug_tag: str | None = None, | |||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a docstring? For instance, it was unclear to me what callable is used for. First I thought it was the continuation for after the breakpoint, but Breakpoint.handle
is already given a continuation.
@fzaiser thanks for taking a look! I’ll add a bunch of docstrings and tests and ask for a quick re-review sometime this week / next |
No description provided.