diff -r e627cc25b6f3 -r 4cb75772818d mercurial/branchmap.py --- a/mercurial/branchmap.py Sun Jan 05 22:26:16 2025 -0500 +++ b/mercurial/branchmap.py Mon Jan 06 00:30:55 2025 -0500 @@ -202,7 +202,7 @@ def __init__( self, - repo: "localrepo.localrepository", + repo: localrepo.localrepository, entries: Union[ Dict[bytes, List[bytes]], Iterable[Tuple[bytes, List[bytes]]] ] = (), @@ -437,7 +437,7 @@ def __init__( self, - repo: "localrepo.localrepository", + repo: localrepo.localrepository, entries: Union[ Dict[bytes, List[bytes]], Iterable[Tuple[bytes, List[bytes]]] ] = (), @@ -545,7 +545,7 @@ return bcache @classmethod - def _load_header(cls, repo, lineiter) -> "dict[str, Any]": + def _load_header(cls, repo, lineiter) -> dict[str, Any]: raise NotImplementedError def _load_heads(self, repo, lineiter): @@ -788,7 +788,7 @@ _base_filename = b"branch2" @classmethod - def _load_header(cls, repo, lineiter) -> "dict[str, Any]": + def _load_header(cls, repo, lineiter) -> dict[str, Any]: """parse the head of a branchmap file return parameters to pass to a newly created class instance. @@ -1079,7 +1079,7 @@ def __init__( self, - repo: "localrepo.localrepository", + repo: localrepo.localrepository, entries: Union[ Dict[bytes, List[bytes]], Iterable[Tuple[bytes, List[bytes]]] ] = (),