MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / has_context

Function has_context

pythonwhat/checks/check_has_context.py:12–14  ·  view source on GitHub ↗
(state, incorrect_msg=None, exact_names=False)

Source from the content-addressed store, hash-verified

10
11
12def has_context(state, incorrect_msg=None, exact_names=False):
13 # call _has_context, since the built-in singledispatch can only use 1st pos arg
14 return _has_context(state, incorrect_msg, exact_names)
15
16
17def _test(state, incorrect_msg, exact_names, tv_name, highlight_name):

Callers 2

test_withFunction · 0.90
test_compFunction · 0.90

Calls 1

_has_contextFunction · 0.85

Tested by 2

test_withFunction · 0.72
test_compFunction · 0.72