mercurial/manifest.py
branchstable
changeset 52327 0851d94bfdaa
parent 52070 33f255bf19d9
child 52474 048c11993d6a
--- a/mercurial/manifest.py	Wed Nov 27 00:13:27 2024 -0500
+++ b/mercurial/manifest.py	Mon Nov 25 18:56:39 2024 -0500
@@ -10,10 +10,10 @@
 import heapq
 import itertools
 import struct
+import typing
 import weakref
 
 from typing import (
-    ByteString,
     Callable,
     Collection,
     Dict,
@@ -51,6 +51,12 @@
     constants as revlog_constants,
 )
 
+if typing.TYPE_CHECKING:
+    from typing import (
+        ByteString,
+    )
+
+
 parsers = policy.importmod('parsers')
 propertycache = util.propertycache