diff mercurial/hgweb/__init__.py @ 49435:093e5c274f54

typing: suppress a few pyi-errors with more recent pytype Not sure what's going on here, but these were flagged with pytype 2022.03.21. We can't update to something much more recent, because newer versions complain about various `attr` uses.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 13 Jul 2022 11:30:13 -0400
parents 642e31cb55f0
children f4733654f144
line wrap: on
line diff
--- a/mercurial/hgweb/__init__.py	Wed Jul 13 18:27:40 2022 +0200
+++ b/mercurial/hgweb/__init__.py	Wed Jul 13 11:30:13 2022 -0400
@@ -18,12 +18,15 @@
 
 from ..utils import procutil
 
+# pytype: disable=pyi-error
 from . import (
     hgweb_mod,
     hgwebdir_mod,
     server,
 )
 
+# pytype: enable=pyi-error
+
 
 def hgweb(config, name=None, baseui=None):
     """create an hgweb wsgi object