Skip to content

Commit 5eaabf1

Browse files
committed
Appeasing mypy.
1 parent 321f248 commit 5eaabf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nnf/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,19 @@ def all_models(names: 't.Iterable[Name]') -> t.Iterator[Model]:
6464
# Valid values: native and kissat
6565
SAT_BACKEND = 'native'
6666

67+
6768
class using_kissat():
6869
"""Context manager to use the kissat solver in a block of code."""
6970

7071
def __init__(self) -> None:
7172
self.setting = SAT_BACKEND
7273

73-
def __enter__(self):
74+
def __enter__(self) -> 'using_kissat':
7475
global SAT_BACKEND
7576
SAT_BACKEND = 'kissat'
7677
return self
7778

78-
def __exit__(self, exc_type, exc_value, exc_traceback):
79+
def __exit__(self, *_: t.Any) -> None:
7980
global SAT_BACKEND
8081
SAT_BACKEND = self.setting
8182

0 commit comments

Comments
 (0)