diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -83,7 +83,6 @@ from .branching import ( from .interfaces import ( repository, - util as interfaceutil, ) from .utils import ( @@ -1304,7 +1303,7 @@ if typing.TYPE_CHECKING: ] -class LocalRepository(_localrepo_base_classes): +class localrepository(_localrepo_base_classes): """Main class for representing local repositories. All local repositories are instances of this class. @@ -3606,15 +3605,6 @@ class LocalRepository(_localrepo_base_cl self._sidedata_computers[kind][category] = (keys, computer, flags) -localrepository = interfaceutil.implementer(repository.ilocalrepositorymain)( - LocalRepository -) - -if typing.TYPE_CHECKING: - # Help pytype by hiding the interface stuff that confuses it. - localrepository = LocalRepository - - def undoname(fn: bytes) -> bytes: base, name = os.path.split(fn) assert name.startswith(b'journal')