add SLF lint

This commit is contained in:
Jörg Thalheim
2024-09-02 16:22:10 +02:00
parent 4047dd5302
commit f6e2c11eb8
8 changed files with 19 additions and 19 deletions

View File

@@ -50,7 +50,7 @@ class ImplFunc(GObject.Object, Generic[P, B]):
msg = "Method 'async_run' must be implemented"
raise NotImplementedError(msg)
def _async_run(self, data: Any) -> bool:
def internal_async_run(self, data: Any) -> bool:
result = GLib.SOURCE_REMOVE
try:
result = self.async_run(**data)

View File

@@ -118,7 +118,7 @@ class WebExecutor(GObject.Object):
# from_dict really takes Anything and returns an instance of the type/class
reconciled_arguments[k] = from_dict(arg_class, v)
GLib.idle_add(fn_instance._async_run, reconciled_arguments)
GLib.idle_add(fn_instance.internal_async_run, reconciled_arguments)
def on_result(self, source: ImplFunc, data: GResult) -> None:
result = dataclass_to_dict(data.result)