lolpack / type_coverage_py

MIT License
0 stars 0 forks source link

Notes for improved analysis #11

Open lolpack opened 1 week ago

lolpack commented 1 week ago

Discussion: https://discuss.python.org/t/type-coverage-of-popular-python-packages-and-github-badge/63401

Compare with myyp

mypy --check-untyped-defs --txt-report build test2.py

Compare with pyright

pyright --verifytypes soupsieve

Include ./typings repo

Consider py.typed file found

Look at test dirs or not?

lolpack commented 4 days ago

Notes:

touch .venv/lib/python3.12/site-packages/setuptools/py.typed

pyright --verifytypes requests --outputjson

cat requests_json | jq '.typeCompleteness.symbols[].category' | sort | uniq -c 120 "class" 76 "constant" 132 "function" 602 "method" 11 "module" 10 "type alias" 4 "type variable" 378 "variable"