typing: add py.typed to mercurial.cext for PEP 561 support
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Nov 2022 16:11:20 -0500
changeset 49650 2e34ea45aaea
parent 49649 df5d3b0d6472
child 49651 3e1869751cfe
typing: add py.typed to mercurial.cext for PEP 561 support Unfortunately, pytype doesn't support this yet. But it was included with the attr package, so we might as well do it here for consistency. Unlike the attr package, these type hints are only partial, so they are marked as such[1] (but who knows if it matters, given these are C extensions, so no local source code to scan). [1] https://peps.python.org/pep-0561/#partial-stub-packages
mercurial/cext/py.typed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/cext/py.typed	Wed Nov 23 16:11:20 2022 -0500
@@ -0,0 +1,1 @@
+partial