ML i[zdZddlZddlmZmZddlmZerddlmZGddeZ Gdd e Z d e iZ y) z>Defines the different custom formats in which mypy can output.N)ABCabstractmethod) TYPE_CHECKING) MypyErrorc*eZdZdZedddefdZy)ErrorFormatterzCBase class to define how errors are formatted before being printed.errorrreturnct)N)NotImplementedErrorselfr s Z/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/mypy/error_formatter.py report_errorzErrorFormatter.report_errors!!N)__name__ __module__ __qualname____doc__rstrrrrrr s%M"+"#""rrc eZdZdZdddefdZy) JSONFormatterz'Formatter for basic JSON output format.r rr c Jtj|j|j|j|j t |jdk(rdndj|j|jdn|jj|jdS)z3Prints out the errors as simple, static JSON lines.rN )filelinecolumnmessagehintcodeseverity) jsondumps file_pathrrrlenhintsjoin errorcoder!r"r s rrzJSONFormatter.report_errorsuzz ,, == #EKK 0A 5499U[[;Q % 7U__=Q=Q!NN   rN)rrrrrrrrrrrs1  +  #  rrr#) rr#abcrrtypingr mypy.errorsrrrOUTPUT_CHOICESrrrr.s=D # %"S" N $-/*r