comparison mercurial/diffutil.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 f4733654f144
children
comparison
equal deleted inserted replaced
52644:e627cc25b6f3 52645:4cb75772818d
31 # TODO: narrow the value after the config module is typed 31 # TODO: narrow the value after the config module is typed
32 _Opts = Dict[bytes, Any] 32 _Opts = Dict[bytes, Any]
33 33
34 34
35 def diffallopts( 35 def diffallopts(
36 ui: "uimod.ui", 36 ui: uimod.ui,
37 opts: Optional[_Opts] = None, 37 opts: Optional[_Opts] = None,
38 untrusted: bool = False, 38 untrusted: bool = False,
39 section: bytes = b'diff', 39 section: bytes = b'diff',
40 configprefix: bytes = b'', 40 configprefix: bytes = b'',
41 ) -> mdiff.diffopts: 41 ) -> mdiff.diffopts:
51 configprefix=configprefix, 51 configprefix=configprefix,
52 ) 52 )
53 53
54 54
55 def difffeatureopts( 55 def difffeatureopts(
56 ui: "uimod.ui", 56 ui: uimod.ui,
57 opts: Optional[_Opts] = None, 57 opts: Optional[_Opts] = None,
58 untrusted: bool = False, 58 untrusted: bool = False,
59 section: bytes = b'diff', 59 section: bytes = b'diff',
60 git: bool = False, 60 git: bool = False,
61 whitespace: bool = False, 61 whitespace: bool = False,