Fix more typing issues.

This commit is contained in:
Mike Auty
2018-06-04 23:28:26 +01:00
parent abfcdba524
commit 2dc3d2928d
4 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class PluginInterface(interfaces_configuration.ConfigurableInterface, validity.V
config_path: str,
progress_callback: validity.ProgressCallback = None) -> None:
super().__init__(context, config_path)
self._progress_callback = progress_callback
self._progress_callback = progress_callback or (lambda f, s: None)
# Plugins self validate on construction, it makes it more difficult to work with them, but then
# the validation doesn't need to be repeated over and over again by externals
if self.unsatisfied(context, config_path):