--- 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