diff contrib/import-checker.py @ 52755:5c48fd4c0e68

typing: introduce a `types` module and a MatcherT alias This is a proposal to formalise the way we do typing and do more of it. The initial motivation to make progress is to help break the 100+ module cycle that is slowing pytype a lot.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 30 Jan 2025 18:22:01 +0100
parents 3e84e001b6c1
children
line wrap: on
line diff
--- a/contrib/import-checker.py	Tue Feb 04 14:02:20 2025 -0500
+++ b/contrib/import-checker.py	Thu Jan 30 18:22:01 2025 +0100
@@ -26,6 +26,8 @@
     'mercurial.hgweb.request',
     'mercurial.i18n',
     'mercurial.interfaces',
+    'mercurial.interfaces._basetypes',
+    'mercurial.interfaces.types',
     'mercurial.node',
     'mercurial.pycompat',
     # for revlog to re-export constant to extensions