From 55b8b4714768a02027cad4411f8551f6deb5bdc8 Mon Sep 17 00:00:00 2001 From: Avasam Date: Mon, 23 Dec 2024 14:53:19 -0500 Subject: [PATCH] Disable name-defined in demos --- mypy.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mypy.ini b/mypy.ini index f2ea5095d..27d6c6f96 100644 --- a/mypy.ini +++ b/mypy.ini @@ -59,6 +59,11 @@ exclude = (?x)( | ([Tt]est|Demos?)/ ) +# A lot of demos will star-import constants from win32com, +# which can't be analyzed/followed unless using typeshed's types-pywin32 +[mypy-win32comext.*.demo.*,win32comext.*.demos.*] +disable_error_code = name-defined + ; C-modules that will need type-stubs [mypy-adsi.*,dde,exchange,mapi,perfmon,servicemanager,win32api,win32console,win32clipboard,win32comext.adsi.adsi,win32event,win32evtlog,win32file,win32gui,win32help,win32pdh,win32process,win32ras,win32security,win32service,win32trace,win32ui,win32uiole,win32wnet,_win32sysloader,_winxptheme] ignore_missing_imports = True