diff mercurial/sslutil.py @ 46785:521ac0d7047f stable

typing: disable import error warnings that are already handled I'm assuming that the cffi ones are handled somewhere, but the others definitely are. Differential Revision: https://phab.mercurial-scm.org/D10207
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 13 Mar 2021 00:38:59 -0500
parents 59fa3890d40a
children 52528570312e
line wrap: on
line diff
--- a/mercurial/sslutil.py	Fri Mar 12 17:22:35 2021 -0500
+++ b/mercurial/sslutil.py	Sat Mar 13 00:38:59 2021 -0500
@@ -269,7 +269,7 @@
 
     if b'SSLKEYLOGFILE' in encoding.environ:
         try:
-            import sslkeylog
+            import sslkeylog  # pytype: disable=import-error
 
             sslkeylog.set_keylog(
                 pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE'])