changeset 6823:47c7b5ccabd0

pytype: ignore an error about missing scmutil.filteredhash() on hg 6.8
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 12 Jul 2024 15:43:01 +0400
parents ed00ed185249
children 417f775d3eee
files hgext3rd/evolve/headchecking.py hgext3rd/topic/discovery.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/headchecking.py	Fri Jun 28 19:05:24 2024 +0400
+++ b/hgext3rd/evolve/headchecking.py	Fri Jul 12 15:43:01 2024 +0400
@@ -27,7 +27,7 @@
     extensions.wrapfunction(discovery, '_postprocessobsolete', _postprocessobsolete)
     if util.safehasattr(scmutil, 'filteredhash'):
         # hg <= 6.7 (a03fa40afd01)
-        code = scmutil.filteredhash.__code__
+        code = scmutil.filteredhash.__code__  # pytype: disable=module-attr
         if 'needobsolete' not in code.co_varnames[:code.co_argcount]:
             # hg <= 6.0 (053a5bf508da)
             extensions.wrapfunction(scmutil, 'enforcesinglehead', enforcesinglehead)
--- a/hgext3rd/topic/discovery.py	Fri Jun 28 19:05:24 2024 +0400
+++ b/hgext3rd/topic/discovery.py	Fri Jul 12 15:43:01 2024 +0400
@@ -242,7 +242,7 @@
     filterfn = lambda repo, heads: heads
     if util.safehasattr(scmutil, 'filteredhash'):
         # hg <= 6.7 (a03fa40afd01)
-        code = scmutil.filteredhash.__code__
+        code = scmutil.filteredhash.__code__  # pytype: disable=module-attr
         if 'needobsolete' not in code.co_varnames[:code.co_argcount]:
             # hg <= 6.0 (053a5bf508da)
             filterfn = _filter_obsolete_heads