MCPcopy Index your code
hub / github.com/python/mypy / fail

Method fail

mypy/messages.py:273–282  ·  view source on GitHub ↗

Report an error message (unless disabled).

(
        self,
        msg: str,
        context: Context,
        *,
        code: ErrorCode | None = None,
        origin_context: Context | None = None,
    )

Source from the content-addressed store, hash-verified

271 )
272
273 def fail(
274 self,
275 msg: str,
276 context: Context,
277 *,
278 code: ErrorCode | None = None,
279 origin_context: Context | None = None,
280 ) -> ErrorInfo:
281 """Report an error message (unless disabled)."""
282 return self.report(msg, context, "error", code=code, origin_context=origin_context)
283
284 def note(
285 self,

Callers 15

has_no_attrMethod · 0.95
not_callableMethod · 0.95
untyped_function_callMethod · 0.95
incompatible_argumentMethod · 0.95
invalid_index_typeMethod · 0.95
readonly_keys_mutatedMethod · 0.95
too_few_argumentsMethod · 0.95
too_many_argumentsMethod · 0.95

Calls 1

reportMethod · 0.95

Tested by

no test coverage detected