diff hgext3rd/topic/discovery.py @ 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 b88cd2f549a8
children 6d22e9a596c4
line wrap: on
line diff
--- 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