def has_context(incorrect_msg=None, exact_names=False, state=None): # call _has_context, since the built-in singledispatch can only use 1st pos arg return _has_context(state, incorrect_msg, exact_names)