diff hgext/convert/hg.py @ 49866:2ac60a71c240

typing: suppress a couple of attribute-errors in convert I thought these might be real issues, but they're not.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 06 Jan 2023 10:56:53 -0500
parents 417a1691a273
children ed65e97db7bc
line wrap: on
line diff
--- a/hgext/convert/hg.py	Fri Jan 06 00:05:14 2023 -0500
+++ b/hgext/convert/hg.py	Fri Jan 06 10:56:53 2023 -0500
@@ -608,7 +608,10 @@
             files = copyfiles = ctx.manifest()
         if parents:
             if self._changescache[0] == rev:
-                ma, r = self._changescache[1]
+                # TODO: add type hints to avoid this warning, instead of
+                #  suppressing it:
+                #     No attribute '__iter__' on None [attribute-error]
+                ma, r = self._changescache[1]  # pytype: disable=attribute-error
             else:
                 ma, r = self._changedfiles(parents[0], ctx)
             if not full: