mercurial/bundlerepo.py
changeset 51870 9d4ad05bc91c
parent 51863 f4733654f144
child 51871 cfd30df0f8e4
--- a/mercurial/bundlerepo.py	Wed Jun 19 14:49:35 2024 +0200
+++ b/mercurial/bundlerepo.py	Wed Sep 18 17:50:57 2024 -0400
@@ -16,6 +16,7 @@
 import contextlib
 import os
 import shutil
+import typing
 
 from .i18n import _
 from .node import (
@@ -287,7 +288,13 @@
     return filespos
 
 
-class bundlerepository:
+_bundle_repo_baseclass = object
+
+if typing.TYPE_CHECKING:
+    _bundle_repo_baseclass = localrepo.localrepository
+
+
+class bundlerepository(_bundle_repo_baseclass):
     """A repository instance that is a union of a local repo and a bundle.
 
     Instances represent a read-only repository composed of a local repository