Skip to content
Snippets Groups Projects
Commit 54421ef8a423 authored by Matt Harbison's avatar Matt Harbison
Browse files

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.
parent 86e398a3d598
No related branches found
No related tags found
2 merge requests!485branching: merge default into stable,!326Update to pytype 2022.11.18
...@@ -1607,6 +1607,10 @@ ...@@ -1607,6 +1607,10 @@
'mercurial.helptext.internals': [ 'mercurial.helptext.internals': [
'*.txt', '*.txt',
], ],
'mercurial.thirdparty.attr': [
'*.pyi',
'py.typed',
],
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment