# HG changeset patch # User Matt Harbison # Date 1669255906 18000 # Node ID 54421ef8a423810d17eb71f47574ba21ae8db733 # Parent 86e398a3d59837356ec07793bdf813835b1c9139 setup: include vendored 3rd party type stubs While pytype may not support PEP 561, PyCharm does, so having the stubs available means it can determine `foo = attr.ib(type=int)` means `foo` is an int. This only applies when using Mercurial as a library, like with TortoiseHg development- PyCharm is already smart enough to use the *.pyi files in the Mercurial source tree when hacking on Mercurial itself. I left the mercurial.cext stubs out because it seems very low level, that 3rd parties shouldn't be using directly. diff -r 86e398a3d598 -r 54421ef8a423 setup.py --- a/setup.py Wed Nov 23 20:59:53 2022 -0500 +++ b/setup.py Wed Nov 23 21:11:46 2022 -0500 @@ -1607,6 +1607,10 @@ 'mercurial.helptext.internals': [ '*.txt', ], + 'mercurial.thirdparty.attr': [ + '*.pyi', + 'py.typed', + ], }