Skip to content

Commit

Permalink
fix derived type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
alpavlenko committed Dec 5, 2023
1 parent 67c2e9d commit 6575d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_satprob/derived.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
pass


def to_dnf_var(lit: int) -> Variable:
def to_dnf_var(lit: int) -> 'Variable':
var = exprvar('x', abs(lit))
return var if lit > 0 else ~var


def to_dnf_clause(cube: Supplements) -> AndOp:
def to_dnf_clause(cube: Supplements) -> 'AndOp':
return And(*map(to_dnf_var, cube[0]))


Expand Down

0 comments on commit 6575d58

Please sign in to comment.