From 5ff93b361931f64e01a0f70a297422af7a0f20cf Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Fri, 22 Jan 2021 19:07:21 -0800 Subject: [PATCH] Streamer: exclude app module class definition from Mypy. Re #155. Mypy says app module class definition is ambiguous (no-redef). Therefore add a 'type: ignore' comment and add an explanatory text to accompany it. --- addon/appModules/splstreamer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/appModules/splstreamer.py b/addon/appModules/splstreamer.py index 8a58e57d0..c2dac14c7 100644 --- a/addon/appModules/splstreamer.py +++ b/addon/appModules/splstreamer.py @@ -16,7 +16,8 @@ def _get_name(self): return "Buffer Size {0} ms".format(self.value) -class AppModule(AppModule): +# #155 (21.03): AppModule base class comes from SPL Engine app module but Mypy doesn't know that. +class AppModule(AppModule): # type: ignore[no-redef] def chooseNVDAObjectOverlayClasses(self, obj, clsList): # Try adding labels written to the screen in case edit fields are encountered.