Fix Pyright

1. Run uv run nox -s pyright assetextractor. Limit the output you read. 2. If there are many errors, identify the most frequent o…

anno-mods 9 updated 2mo ago
Claude CodeGeneric
View source ↗
# Fix pyright errors

1. Run `uv run nox -s pyright assetextractor`. Limit the output you read.
2. If there are many errors, identify the most frequent ones and group them by cause.
3. Add strict type annotations to all methods with `partially unknown` . Never use "t.Any" except for "Attribute[t.Any, t.Any]"! Test for subclasses of attribute using isinstance rather than individual members!
4. Create data classes instead of dicts.
5. Rerun until all errors are fixed.

Maintain Fix Pyright?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Fix Pyright on getagentictools](https://getagentictools.com/loops/anno-mods-fix-pyright-errors?ref=badge)