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

Class Annotation

mypyc/annotate.py:51–62  ·  view source on GitHub ↗

HTML annotation for compiled source code

Source from the content-addressed store, hash-verified

49
50
51class Annotation:
52 """HTML annotation for compiled source code"""
53
54 def __init__(self, message: str, priority: int = 1) -> None:
55 # Message as HTML that describes an issue and/or how to fix it.
56 # Multiple messages on a line may be concatenated.
57 self.message = message
58 # If multiple annotations are generated for a single line, only report
59 # the highest-priority ones. Some use cases generate multiple annotations,
60 # and this can be used to reduce verbosity by hiding the lower-priority
61 # ones.
62 self.priority = priority
63
64
65op_hints: Final = {

Callers 3

annotate.pyFile · 0.85
function_annotationsFunction · 0.85
annotateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…