Skip to content

Commit dcf2394

Browse files
committed
Add type hints to Settings.
1 parent 8b63e25 commit dcf2394

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

popper/util.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from contextlib import contextmanager
66
from itertools import permutations
77
from time import perf_counter
8-
from typing import NamedTuple, Optional, Dict
8+
from typing import NamedTuple, Optional, Dict, Tuple, Any
99

1010
import clingo
1111
import clingo.script
@@ -256,6 +256,12 @@ def flatten(xs):
256256

257257

258258
class Settings:
259+
260+
showcons: bool
261+
datalog: bool
262+
show_failures: bool # display detailed FP and FN information
263+
cached_literals: Dict[Tuple[str, Any], Literal]
264+
259265
def __init__(self, cmd_line=False, info=True, debug=False, show_stats=True, max_literals=MAX_LITERALS,
260266
timeout=TIMEOUT, quiet=False, eval_timeout=EVAL_TIMEOUT, max_examples=MAX_EXAMPLES, max_body=None,
261267
max_rules=None, max_vars=None, functional_test=False, kbpath=False, ex_file=False, bk_file=False,

0 commit comments

Comments
 (0)