# HG changeset patch # User Matt Harbison # Date 1727453148 14400 # Node ID e99c007030daeaa5a68ecce72180934e9c839e0b # Parent 70fe33bdab546ff6f97c09f2dee334aa02d761ac git: make `dirstate.parents()` return a list like the core class The core class returned a list, so that's how I type annotated it, and this got flagged. I suppose we could annotate it as a `Sequence[bytes]`, but it's a trivial difference. diff -r 70fe33bdab54 -r e99c007030da hgext/git/dirstate.py --- a/hgext/git/dirstate.py Fri Sep 27 11:57:42 2024 -0400 +++ b/hgext/git/dirstate.py Fri Sep 27 12:05:48 2024 -0400 @@ -125,7 +125,7 @@ def parents(self): # TODO how on earth do we find p2 if a merge is in flight? - return self.p1(), sha1nodeconstants.nullid + return [self.p1(), sha1nodeconstants.nullid] def __iter__(self): return (pycompat.fsencode(f.path) for f in self.git.index)