add SLF lint
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user