changeset 51811 | 460e80488cf0 |
parent 51725 | 278af66e6595 |
child 51859 | f4733654f144 |
--- 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.