diff -r 81224afd938d -r f15cb5111a1e mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Dec 20 20:13:22 2023 +0100 +++ b/mercurial/cmdutil.py Tue Dec 19 21:29:34 2023 +0100 @@ -4118,8 +4118,10 @@ return 0 -def readgraftstate(repo, graftstate): - # type: (Any, statemod.cmdstate) -> Dict[bytes, Any] +def readgraftstate( + repo: Any, + graftstate: statemod.cmdstate, +) -> Dict[bytes, Any]: """read the graft state file and return a dict of the data stored in it""" try: return graftstate.read()