# HG changeset patch # User Matt Harbison # Date 2022-11-23 21:11:20 # Node ID 2e34ea45aaeaf1991b3e6c9854f340d828be8298 # Parent df5d3b0d6472dd89eaa83f7d2f76a2d591a3eafb 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 diff --git a/mercurial/cext/py.typed b/mercurial/cext/py.typed new file mode 100644 --- /dev/null +++ b/mercurial/cext/py.typed @@ -0,0 +1,1 @@ +partial