hgext/phabricator.py
changeset 51725 278af66e6595
parent 51722 587153c96fe3
child 51859 f4733654f144
--- a/hgext/phabricator.py	Tue Jul 23 19:14:16 2024 -0400
+++ b/hgext/phabricator.py	Tue Jul 23 19:20:22 2024 -0400
@@ -68,10 +68,17 @@
 import operator
 import re
 import time
+import typing
 
 from mercurial.node import bin, short
 from mercurial.i18n import _
 from mercurial.thirdparty import attr
+
+# Force pytype to use the non-vendored package
+if typing.TYPE_CHECKING:
+    # noinspection PyPackageRequirements
+    import attr
+
 from mercurial import (
     cmdutil,
     context,