Skip to main content

Module ty

Module ty 

Source
Expand description

ty diagnostics (PSP-10 system 26): the primary Python sensor.

The LSP observation is primary; when it is empty the runtime falls back to ty check --output-format concise, whose versioned text format is path:line:col: error[rule] message (sampled against ty 0.0.x). The PSP claims no JSON format for ty.

Constants§

PARSER_ID
Text-parser identity; enters the sensor fingerprint.

Functions§

from_lsp_diagnostics
Preserve LSP textDocument/publishDiagnostics items as structured diagnostics. items is the LSP diagnostics array; path the document they belong to.
parse_check_text
Parse ty check --output-format concise lines.