Skip to content

Older stubs still explicitly using Any rather than Incomplete #9550

Description

@Avasam

Thanks to typeshed-stats (#9386), I was able to make the following list of stubs majorly using Any, indicating that they've likely not been switched over to Incomplete yet.
Ordered by ratio of "explicit Any / explicit Incomplete + 1" parameters and variables.
Excludes stubs marked as obsolete and ratio <= 1 rounded down.

Package NameExplicit AnyExplicit IncompleteRatio
WebOb1190119
WTForms1140114
simplejson59059
python-gflags50050
regex41041
pyflakes40040
Markdown33033
jmespath60130
toml30030
decorator28028
python-xlib28028
uWSGI21021
gevent114519
polib18018
slumber16016
six15015
PyYAML2161414
pynput14014
stdlib329523713
opentracing25112
hdbcli24112
python-jose56411
fanstatic11011
Flask-Cors10010
mypy-extensions10010
protobuf144159
parsimonious2729
capturer909
croniter909
greenlet808
singledispatch808
translationstring808
xmltodict808
html5lib179247
paramiko4566
console-menu1115
waitress505
python-crontab1834
cachetools404
colorama404
qrbill404
Pygments178473
vobject93243
PyMySQL88283
dateparser86213
Send2Trash303
untangle303
usersettings303
seaborn186652
mock137452
psycopg297372
beautifulsoup472332
aws-xray-sdk61212
humanfriendly54222
requests53192
JACK-Client202
chevron202
first202
ibm-db202
libsass202
retry202
tabulate202
toposort202
gdb202

(updated as of 2023-11-02)


We can also list 3rd party stubs by how many module-level and class-level variables they have:
for d in stubs/*/; do echo "$d,$( grep -ERoi '(^| )[[:alnum:]]+?: Any$' $d | wc -l )"; done

Package NameVar Any count
html5lib144
ldap3133
Pygments131
psutil82
PyYAML77
google-cloud-ndb55
PyMySQL35
psycopg233
httplib232
beautifulsoup427
protobuf27
aws-xray-sdk25
passlib24
oauthlib23
mock16
dateparser16
fpdf212
python-jose9
paramiko9
requests6
geopandas5
watchpoints3
boltons2
Markdown2

(updated as of 2025-04-19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: improvementImprove/refactor existing annotations, other stubs issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions