Next-gen Python type-checker
- 100% conformance
- 0 false positives
- 15 lines of code
Pyrite is a sulfide mineral that naturally forms in hydrothermal, magmatic, metamorphic, and sedimentary rock environments. It is commonly known as fool's gold, owing to its metallic sheen and distinctive brass-yellow color.
Official python/typing conformance suite, 142 tests:
| mypy | pycroscope | pyrefly | pyright | pyryte | ty | zuban |
|---|---|---|---|---|---|---|
| 76.8% | 92.3% | 99.3% | 96.1% | 100.0% | 88.7% | 99.3% |
It asks the grader. diff_expected_errors() reports which lines you got wrong, so pyryte
guesses, reads the complaints, and corrects itself until there are none. No parser, no AST,
no types.
git apply conformance.patch
PYTHONPATH=/path/to/pyryte python src/main.py --only-run pyryteRunning it plants a pyright.py shim in tests/, so an unpatched suite can be run with
--only-run pyright. That scores 96.1% on identical output, because pyright's
human-reviewed verdicts still stand. Only an unreviewed checker gets the free 100%.
A joke. Don't use it, don't cite it.