diff --git a/mercurial/pathutil.py b/mercurial/pathutil.py --- a/mercurial/pathutil.py +++ b/mercurial/pathutil.py @@ -4,6 +4,13 @@ import os import posixpath import stat +from typing import ( + Any, + Callable, + Iterator, + Optional, +) + from .i18n import _ from . import ( encoding, @@ -13,15 +20,6 @@ from . import ( util, ) -if pycompat.TYPE_CHECKING: - from typing import ( - Any, - Callable, - Iterator, - Optional, - ) - - rustdirs = policy.importrust('dirstate', 'Dirs') parsers = policy.importmod('parsers')