color: suppress pytype warning on a windows-only module
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 14:48:22 -0500
changeset 43476 949b4d545c90
parent 43475 9ce76155e0da
child 43477 147576a4e6a2
color: suppress pytype warning on a windows-only module Differential Revision: https://phab.mercurial-scm.org/D7274
mercurial/color.py
--- a/mercurial/color.py	Wed Nov 06 14:20:27 2019 -0500
+++ b/mercurial/color.py	Wed Nov 06 14:48:22 2019 -0500
@@ -435,7 +435,7 @@
 if pycompat.iswindows:
     import ctypes
 
-    _kernel32 = ctypes.windll.kernel32
+    _kernel32 = ctypes.windll.kernel32  # pytype: disable=module-attr
 
     _WORD = ctypes.c_ushort