From 91b0263373a33f27e6f8522f533be4c10757a3d1 Mon Sep 17 00:00:00 2001 From: Avasam Date: Fri, 25 Oct 2024 00:21:23 -0400 Subject: [PATCH] Bumped types-* --- Pythonwin/pywin/framework/bitmap.py | 2 +- Pythonwin/pywin/framework/editor/color/coloreditor.py | 2 +- Pythonwin/pywin/framework/editor/editor.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Pythonwin/pywin/framework/bitmap.py b/Pythonwin/pywin/framework/bitmap.py index 04b7742ad..dd8c085a0 100644 --- a/Pythonwin/pywin/framework/bitmap.py +++ b/Pythonwin/pywin/framework/bitmap.py @@ -135,7 +135,7 @@ def MatchDocType(self, fileName, fileType): bitmapTemplate.SetDocStrings( "\nBitmap\nBitmap\nBitmap (*.bmp)\n.bmp\nPythonBitmapFileType\nPython Bitmap File" ) -win32ui.GetApp().AddDocTemplate(bitmapTemplate) # type: ignore[arg-type] # https://github.com/python/typeshed/pull/12888 +win32ui.GetApp().AddDocTemplate(bitmapTemplate) # This works, but just didn't make it through the code reorg. # class PPMBitmap(Bitmap): diff --git a/Pythonwin/pywin/framework/editor/color/coloreditor.py b/Pythonwin/pywin/framework/editor/color/coloreditor.py index b579ef68d..ffc1cb35e 100644 --- a/Pythonwin/pywin/framework/editor/color/coloreditor.py +++ b/Pythonwin/pywin/framework/editor/color/coloreditor.py @@ -643,4 +643,4 @@ def GetPythonPropertyPages(self): pass editorTemplate = SyntEditTemplate() -win32ui.GetApp().AddDocTemplate(editorTemplate) # type: ignore[arg-type] # https://github.com/python/typeshed/pull/12888 +win32ui.GetApp().AddDocTemplate(editorTemplate) diff --git a/Pythonwin/pywin/framework/editor/editor.py b/Pythonwin/pywin/framework/editor/editor.py index ee3b07bd3..a83f20312 100644 --- a/Pythonwin/pywin/framework/editor/editor.py +++ b/Pythonwin/pywin/framework/editor/editor.py @@ -508,4 +508,4 @@ def Create(fileName=None, title=None, template=None): pass editorTemplate = EditorTemplate() - win32ui.GetApp().AddDocTemplate(editorTemplate) # type: ignore[arg-type] # https://github.com/python/typeshed/pull/12888 + win32ui.GetApp().AddDocTemplate(editorTemplate) diff --git a/setup.py b/setup.py index fadaa27d3..e72edf0ad 100644 --- a/setup.py +++ b/setup.py @@ -920,7 +920,7 @@ def my_new_compiler(**kw): ccompiler.new_compiler = my_new_compiler # type: ignore[assignment] # Assuming the caller will always use only kwargs -class my_compiler(MSVCCompiler): # type: ignore[misc] # Upcomming fix in https://github.com/python/typeshed/pull/12887 +class my_compiler(MSVCCompiler): # Just one GUIDS.CPP and it gives trouble on mainwin too. Maybe I # should just rename the file, but a case-only rename is likely to be # worse! This can probably go away once we kill the VS project files