We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a4fac commit 86f7bd9Copy full SHA for 86f7bd9
1 file changed
shellwhat/sct_syntax.py
@@ -2,16 +2,10 @@
2
3
from shellwhat.State import State
4
from shellwhat import checks
5
-import builtins
6
-from protowhat.sct_syntax import create_sct_context
+from protowhat.sct_syntax import get_checks_dict, create_sct_context
7
8
# used in Chain and F, to know what methods are available
9
-sct_dict = {
10
- k: v
11
- for k, v in vars(checks).items()
12
- if k not in builtins.__dict__
13
- if not k.startswith("__")
14
-}
+sct_dict = get_checks_dict(checks)
15
SCT_CTX = create_sct_context(State, sct_dict)
16
17
# used in test_exercise, so that scts without Ex() don't run immediately
0 commit comments