[Updated] D12365: import-checker: allow symbol imports from typing module
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Mar 14 10:48:12 UTC 2022
Closed by commit rHG8dec9abf2669: import-checker: allow symbol imports from typing module (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12365?vs=32619&id=32634
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12365/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12365
AFFECTED FILES
contrib/import-checker.py
CHANGE DETAILS
diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -19,7 +19,7 @@
import testparseutil
-# Whitelist of modules that symbols can be directly imported from.
+# Allow list of modules that symbols can be directly imported from.
allowsymbolimports = (
'__future__',
'breezy',
@@ -46,9 +46,10 @@
'mercurial.thirdparty.attr',
'mercurial.thirdparty.zope',
'mercurial.thirdparty.zope.interface',
+ 'typing',
)
-# Whitelist of symbols that can be directly imported.
+# Allow list of symbols that can be directly imported.
directsymbols = ('demandimport',)
# Modules that must be aliased because they are commonly confused with
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220314/10ea4343/attachment-0002.html>
More information about the Mercurial-patches
mailing list