Compare commits

...
2 Commits
Author SHA1 Message Date
Mikaël Capelle 41b5672069 Fix for linting. 2024-08-11 14:05:07 +02:00
Mikaël Capelle 49a77592f9 Fixing IPlugin.settingGroups not being abstract. 2024-08-11 13:36:33 +02:00
3 changed files with 3 additions and 5 deletions
+1
View File
@@ -2052,6 +2052,7 @@ mobase:
returns: The list of requirements for this plugin.
settingGroups:
abstract: false
returns: A list of setting groups for this plugin.
settings:
+2 -4
View File
@@ -146,9 +146,8 @@ def main() -> None:
[
# the "real" IPlugin is IPluginBase
"IPlugin",
# this is deprecated
"PluginSetting"
"PluginSetting",
],
),
"mobase.widgets": extract_objects(mobase.widgets), # type: ignore
@@ -174,8 +173,7 @@ def main() -> None:
# Create the corresponding object:
c = register.make_object(n, o)
for n, o in objects:
for n, _o in objects:
c = register.get_object(n)
if isinstance(c, Class):
-1
View File
@@ -2252,7 +2252,6 @@ class IPlugin(abc.ABC):
The list of requirements for this plugin.
"""
...
@abc.abstractmethod
def settingGroups(self: IPlugin) -> Sequence[SettingGroup]:
"""
Returns: