Skip to content

Commit c27a3e9

Browse files
blyxxyzhaz
authored andcommitted
Fix mypy issues in _cnf_satisfiable()
1 parent 2a2de91 commit c27a3e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nnf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,13 +597,13 @@ def to_CNF(self) -> 'And[Or[Var]]':
597597
from nnf import tseitin
598598
return tseitin.to_CNF(self)
599599

600-
def _cnf_satisfiable(self: 'And[Or[Var]]') -> bool:
600+
def _cnf_satisfiable(self) -> bool:
601601
"""Call a SAT solver on the presumed CNF theory."""
602602
if 'native' == SAT_BACKEND:
603603
return self._cnf_satisfiable_native()
604604
elif 'kissat' == SAT_BACKEND:
605605
from nnf import kissat
606-
return kissat.solve(self) is not None
606+
return kissat.solve(t.cast(And[Or[Var]], self)) is not None
607607
elif 'pysat' == SAT_BACKEND:
608608
raise NotImplementedError('pysat backend not yet implemented')
609609
else:

0 commit comments

Comments
 (0)