mercurial/pure/parsers.py
changeset 51725 278af66e6595
parent 51699 ca7bde5dbafb
child 51737 d748fd2647f8
--- a/mercurial/pure/parsers.py	Tue Jul 23 19:14:16 2024 -0400
+++ b/mercurial/pure/parsers.py	Tue Jul 23 19:20:22 2024 -0400
@@ -9,6 +9,7 @@
 import io
 import stat
 import struct
+import typing
 import zlib
 
 from ..node import (
@@ -16,6 +17,12 @@
     sha1nodeconstants,
 )
 from ..thirdparty import attr
+
+# Force pytype to use the non-vendored package
+if typing.TYPE_CHECKING:
+    # noinspection PyPackageRequirements
+    import attr
+
 from .. import (
     error,
     revlogutils,