mercurial/pathutil.py
changeset 49906 15175774e1c5
parent 49893 5f664401dd03
child 49907 7623d79f872c
--- a/mercurial/pathutil.py	Wed Jan 11 17:51:04 2023 +0400
+++ b/mercurial/pathutil.py	Mon Jan 16 12:10:20 2023 +0000
@@ -4,6 +4,13 @@
 import posixpath
 import stat
 
+from typing import (
+    Any,
+    Callable,
+    Iterator,
+    Optional,
+)
+
 from .i18n import _
 from . import (
     encoding,
@@ -13,15 +20,6 @@
     util,
 )
 
-if pycompat.TYPE_CHECKING:
-    from typing import (
-        Any,
-        Callable,
-        Iterator,
-        Optional,
-    )
-
-
 rustdirs = policy.importrust('dirstate', 'Dirs')
 parsers = policy.importmod('parsers')