Skip to content
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

chore: update evaluation.py #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions invariant/runtime/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def eval(expr_or_list, variable_store, globals, evaluation_context=None, return_
return_variable_domains: If True, also returns any new variable domains derived during evaluation.
partial: If True, returns Unknown if any part of the expression is unknown. If False, raises an exception when
an unknown variable is encountered.
assume_bool: Specifies whether it is safe to assume the the list of expressions is a boolean expression. If True,
assume_bool: Specifies whether it is safe to assume the list of expressions is a boolean expression. If True,
the evaluation will be short-circuited in order of the provided expressions.

Returns:
Expand Down Expand Up @@ -640,4 +640,4 @@ def visit_ObjectLiteral(self, node: ObjectLiteral):
return {self.visit(entry.key): self.visit(entry.value) for entry in node.entries}

def visit_ArrayLiteral(self, node: ArrayLiteral):
return [self.visit(entry) for entry in node.elements]
return [self.visit(entry) for entry in node.elements]