Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit c221a65

Browse files
committed
Fix linting issues
1 parent 77af15e commit c221a65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pyk/cterm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def remove_useless_constraints(cterm: CTerm, keep_vars: Iterable[str] = ()) -> C
183183
for c in cterm.constraints:
184184
if c not in new_constraints:
185185
new_vars = free_vars(c)
186-
if any([v in used_vars for v in new_vars]):
186+
if any(v in used_vars for v in new_vars):
187187
new_constraints.append(c)
188188
used_vars.extend(new_vars)
189189
used_vars = list(set(used_vars))

src/pyk/proof/proof.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ def subproofs(self) -> Iterable[Proof]:
162162

163163
@property
164164
def subproofs_status(self) -> ProofStatus:
165-
if any([p.failed for p in self.subproofs]):
165+
if any(p.failed for p in self.subproofs):
166166
return ProofStatus.FAILED
167-
elif all([p.passed for p in self.subproofs]):
167+
elif all(p.passed for p in self.subproofs):
168168
return ProofStatus.PASSED
169169
else:
170170
return ProofStatus.PENDING

0 commit comments

Comments
 (0)