(cls, buf: ReadBuffer)
| 181 | |
| 182 | @classmethod |
| 183 | def read(cls, buf: ReadBuffer) -> ErrorInfo: |
| 184 | return ErrorInfo( |
| 185 | import_ctx=[(read_str(buf), read_int(buf)) for _ in range(read_int_bare(buf))], |
| 186 | local_ctx=(read_str_opt(buf), read_str_opt(buf)), |
| 187 | line=read_int(buf), |
| 188 | column=read_int(buf), |
| 189 | end_line=read_int(buf), |
| 190 | end_column=read_int(buf), |
| 191 | severity=read_str(buf), |
| 192 | message=read_str(buf), |
| 193 | code=mypy_error_codes[code] if (code := read_str_opt(buf)) else None, |
| 194 | blocker=read_bool(buf), |
| 195 | only_once=read_bool(buf), |
| 196 | module=read_str_opt(buf), |
| 197 | target=read_str_opt(buf), |
| 198 | origin_span=read_int_list(buf), |
| 199 | priority=read_int(buf), |
| 200 | ) |
| 201 | |
| 202 | |
| 203 | class ErrorWatcher: |
nothing calls this directly
no test coverage detected