Skip to content

Commit ed31611

Browse files
author
beckydvn
committed
fix flake8
1 parent 8177ae2 commit ed31611

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nnf/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
__version__ = '0.2.1'
1616

17-
from _typeshed import IdentityFunction
1817
import abc
1918
import functools
2019
import itertools
@@ -84,8 +83,6 @@ def all_models(names: 't.Iterable[Name]') -> t.Iterator[Model]:
8483
new[name] = True
8584
yield new
8685

87-
auto_simplify = False
88-
8986

9087
class NNF(metaclass=abc.ABCMeta):
9188
"""Base class for all NNF sentences."""
@@ -115,7 +112,7 @@ def __or__(self: T_NNF, other: U_NNF) -> 'Or[t.Union[T_NNF, U_NNF]]':
115112
return Or({*self.children, *other.children})
116113
return Or({self, other})
117114

118-
def __rshift__(self, other: 'NNF')-> 'Or[NNF]':
115+
def __rshift__(self, other: 'NNF') -> 'Or[NNF]':
119116
"""Or({self.negate(), other})"""
120117
return Or({self.negate(), other})
121118

@@ -1737,6 +1734,7 @@ def decision(
17371734
"""
17381735
return (var & if_true) | (~var & if_false)
17391736

1737+
17401738
#: A node that's always true. Technically an And node without children.
17411739
true = And() # type: And[Bottom]
17421740
#: A node that's always false. Technically an Or node without children.

0 commit comments

Comments
 (0)