Mercurial > public > mercurial-scm > hg
diff mercurial/branchmap.py @ 52645:4cb75772818d
pyupgrade: drop the quoting around type annotations
This is the `typing_pep563` fixer in `pyupgrade`. Quoting to delay evaluation
hasn't been necessary since adding `from __future__ import annotations` in
1c5810ce737e.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 00:30:55 -0500 |
parents | 24ee91ba9aa8 |
children | f066fc0bdc7a |
line wrap: on
line diff
--- 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]]] ] = (),