MCPcopy Create free account
hub / github.com/datacamp/pythonwhat / _has_context

Function _has_context

pythonwhat/checks/check_has_context.py:46–50  ·  view source on GitHub ↗
(state, incorrect_msg, exact_names)

Source from the content-addressed store, hash-verified

44
45@singledispatch
46def _has_context(state, incorrect_msg, exact_names):
47 with debugger(state):
48 state.report(
49 "first argument to _has_context must be a State instance or subclass"
50 )
51
52
53@_has_context.register(State)

Callers 2

has_contextFunction · 0.85
has_context_withFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected