Skip to content

Commit

Permalink
Streamer: exclude app module class definition from Mypy. Re #155.
Browse files Browse the repository at this point in the history
Mypy says app module class definition is ambiguous (no-redef). Therefore add a 'type: ignore' comment and add an explanatory text to accompany it.
  • Loading branch information
josephsl committed Jan 23, 2021
1 parent 125e541 commit 5ff93b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/appModules/splstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5ff93b3

Please sign in to comment.