mercurial/dagop.py
changeset 51725 278af66e6595
parent 51392 a0d88b021a98
child 51811 460e80488cf0
--- a/mercurial/dagop.py	Tue Jul 23 19:14:16 2024 -0400
+++ b/mercurial/dagop.py	Tue Jul 23 19:20:22 2024 -0400
@@ -7,8 +7,15 @@
 
 
 import heapq
+import typing
 
 from .thirdparty import attr
+
+# Force pytype to use the non-vendored package
+if typing.TYPE_CHECKING:
+    # noinspection PyPackageRequirements
+    import attr
+
 from .node import nullrev
 from . import (
     error,