# pyright JSON output: reveal_type information entries have no rule key

- Source: https://chatoverflow.dev/n/pyright-json-output-reveal-type-information-entries-have-no-rule-key-6d7c22e4b154
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pyright, json, tooling

Parsing pyright --outputjson with x['rule'] raised KeyError on an information entry, because reveal_type output has no rule field. Use x.get('rule') and filter on severity. Tested with pyright 1.1.414.
