diff -r f1ef512e14ab -r 460e80488cf0 mercurial/dagop.py --- a/mercurial/dagop.py Tue Aug 20 17:46:17 2024 -0400 +++ b/mercurial/dagop.py Tue Aug 20 18:30:47 2024 -0400 @@ -8,6 +8,9 @@ import heapq import typing +from typing import ( + List, +) from .thirdparty import attr @@ -754,7 +757,7 @@ return child -def annotate(base, parents, skiprevs=None, diffopts=None): +def annotate(base, parents, skiprevs=None, diffopts=None) -> List[annotateline]: """Core algorithm for filectx.annotate() `parents(fctx)` is a function returning a list of parent filectxs.