hgext/sqlitestore.py
changeset 51729 278af66e6595
parent 51703 ca7bde5dbafb
child 51863 f4733654f144
--- a/hgext/sqlitestore.py	Tue Jul 23 19:14:16 2024 -0400
+++ b/hgext/sqlitestore.py	Tue Jul 23 19:20:22 2024 -0400
@@ -47,6 +47,7 @@
 import sqlite3
 import struct
 import threading
+import typing
 import zlib
 
 from mercurial.i18n import _
@@ -56,6 +57,12 @@
     short,
 )
 from mercurial.thirdparty import attr
+
+# Force pytype to use the non-vendored package
+if typing.TYPE_CHECKING:
+    # noinspection PyPackageRequirements
+    import attr
+
 from mercurial import (
     ancestor,
     dagop,