changeset 51817:50b3ff0ec297

manifest: adds some type things for manifestdict.added This appeases pytype.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 04 Aug 2024 10:49:48 +0200
parents 2f88df88f5b9
children f0be60ed6242
files mercurial/manifest.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
     ):