Skip to content

Commit

Permalink
style(plugin_api, plugins: xresources): mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Jun 13, 2024
1 parent a7c29f1 commit 42a028e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions oomox_gui/plugin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def gtk_preview_dir(self) -> str:
def export_dialog(self) -> "type[ExportDialog]":
pass

multi_export_supported = True
multi_export_supported: bool = True

enabled_keys_gtk: ClassVar[list[str]] = []
enabled_keys_options: ClassVar[list[str]] = []
Expand Down Expand Up @@ -102,7 +102,7 @@ class OomoxIconsPlugin(OomoxPlugin):

enabled_keys_icons: ClassVar[list[str]] = []
theme_model_icons: ClassVar["list[ThemeModelValue]"] = []
multi_export_supported = True
multi_export_supported: bool = True

@property
@abstractmethod
Expand Down Expand Up @@ -131,7 +131,7 @@ class OomoxExportPlugin(OomoxPlugin):
def export_dialog(self) -> "type[ExportDialog]":
pass

multi_export_supported = True
multi_export_supported: bool = True

# Text to display in export menu:
export_text: str | None = None
Expand Down
2 changes: 1 addition & 1 deletion plugins/export_xresources/oomox_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ class Plugin(OomoxExportPlugin):
export_text = translate("Export _Xresources theme…")
shortcut = "<Primary>X"
export_dialog = XresourcesExportDialog
multi_export_supported = False
multi_export_supported: bool = False

0 comments on commit 42a028e

Please sign in to comment.