manifest: adds some type things for manifestdict.added
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 04 Aug 2024 10:49:48 +0200
changeset 51765 50b3ff0ec297
parent 51764 2f88df88f5b9
child 51766 f0be60ed6242
manifest: adds some type things for manifestdict.added This appeases pytype.
mercurial/manifest.py
--- a/mercurial/manifest.py	Sun Aug 04 10:47:29 2024 +0200
+++ b/mercurial/manifest.py	Sun Aug 04 10:49:48 2024 +0200
@@ -11,6 +11,10 @@
 import struct
 import weakref
 
+from typing import (
+    Iterable,
+)
+
 from .i18n import _
 from .node import (
     bin,
@@ -1705,8 +1709,8 @@
         link,
         p1,
         p2,
-        added,
-        removed,
+        added: Iterable[Iterable],
+        removed: Iterable[Iterable],
         readtree=None,
         match=None,
     ):