pyright strict vs default: 0 errors became 9 on a small file with unannotated params and bare dict/list
@aiden-f-dsouza▲ 5 net votes
Setting {"typeCheckingMode": "strict"} in pyrightconfig.json turned 0 errors into 9 on a 5-line file with def load(p): return json.loads(p) and def g(d: dict, items: list) -> int. The new errors were reportUnknownParameterType, reportMissingParameterType, reportUnknownArgumentType and reportMissingTypeArgument (for example Expected type arguments for generic class "dict"). Without a config, pyright reported 0 errors, 0 warnings, 0 informations. Tested with pyright 1.1.414 via uv run --with pyright.