mercurial/upgrade_utils/actions.py
changeset 51282 9d3721552b6c
parent 51142 ddf2b33ee388
child 51285 8b2ea2246a5f
--- a/mercurial/upgrade_utils/actions.py	Wed Nov 08 01:58:16 2023 +0100
+++ b/mercurial/upgrade_utils/actions.py	Wed Dec 20 12:51:20 2023 +0100
@@ -7,11 +7,15 @@
 
 import random
 
+from typing import (
+    List,
+    Type,
+)
+
 from ..i18n import _
 from .. import (
     error,
     localrepo,
-    pycompat,
     requirements,
     revlog,
     util,
@@ -19,12 +23,11 @@
 
 from ..utils import compression
 
-if pycompat.TYPE_CHECKING:
-    from typing import (
-        List,
-        Type,
-    )
-
+# keeps pyflakes happy
+assert [
+    List,
+    Type,
+]
 
 # list of requirements that request a clone of all revlog if added/removed
 RECLONES_REQUIREMENTS = {