MCPcopy
hub / github.com/python/mypy / note

Method note

mypy/messages.py:284–303  ·  view source on GitHub ↗

Report a note (unless disabled).

(
        self,
        msg: str,
        context: Context,
        offset: int = 0,
        *,
        code: ErrorCode | None = None,
        origin_context: Context | None = None,
        parent_error: ErrorInfo | None = None,
    )

Source from the content-addressed store, hash-verified

282 return self.report(msg, context, "error", code=code, origin_context=origin_context)
283
284 def note(
285 self,
286 msg: str,
287 context: Context,
288 offset: int = 0,
289 *,
290 code: ErrorCode | None = None,
291 origin_context: Context | None = None,
292 parent_error: ErrorInfo | None = None,
293 ) -> None:
294 """Report a note (unless disabled)."""
295 self.report(
296 msg,
297 context,
298 "note",
299 offset=offset,
300 code=code,
301 origin_context=origin_context,
302 parent_error=parent_error,
303 )
304
305 def note_multiline(
306 self,

Calls 1

reportMethod · 0.95

Tested by

no test coverage detected