Patchwork D7274: color: suppress pytype warning on a windows-only module

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:33 a.m.
Message ID <326356fc1259f6d06f93b3b571ab0cf2@localhost.localdomain>
Download mbox | patch
Permalink /patch/42872/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:33 a.m.
Closed by commit rHG949b4d545c90: color: suppress pytype warning on a windows-only module (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7274?vs=17644&id=17691

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7274/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7274

AFFECTED FILES
  mercurial/color.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/color.py b/mercurial/color.py
--- a/mercurial/color.py
+++ b/mercurial/color.py
@@ -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