comparison mercurial/utils/urlutil.py @ 52670: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 ba343f763595
comparison
equal deleted inserted replaced
52669:e627cc25b6f3 52670:4cb75772818d
656 for p in old_paths: 656 for p in old_paths:
657 new_paths.extend(_chain_path(p, ui, self)) 657 new_paths.extend(_chain_path(p, ui, self))
658 self[name] = new_paths 658 self[name] = new_paths
659 659
660 660
661 _pathsuboptions: "Dict[bytes, Tuple[str, Callable]]" = {} 661 _pathsuboptions: Dict[bytes, Tuple[str, Callable]] = {}
662 # a dictionnary of methods that can be used to format a sub-option value 662 # a dictionnary of methods that can be used to format a sub-option value
663 path_suboptions_display = {} 663 path_suboptions_display = {}
664 664
665 665
666 def pathsuboption(option: bytes, attr: str, display=pycompat.bytestr): 666 def pathsuboption(option: bytes, attr: str, display=pycompat.bytestr):