mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
tools: add return annotations flagged in review
Trivial type-annotation nits from the gx-review pass: Tool.parse_tests -> None, the Tool.tests property -> list[ToolTestDescription] | None, and the LazyToolBox._load_tool_panel override -> None. Claude-Session: https://claude.ai/code/session_018L7ZmCv2ubKA3JNeSL8Pkr
This commit is contained in:
@@ -1706,7 +1706,7 @@ class Tool(UsesDictVisibleKeys, MaybeToolParameterBundle):
|
||||
self.config_files.extend(tool_source.parse_template_configfiles())
|
||||
self.config_files.extend(tool_source.parse_file_sources())
|
||||
|
||||
def parse_tests(self):
|
||||
def parse_tests(self) -> None:
|
||||
self.__tests_parsed = True
|
||||
source = self.tool_source
|
||||
if source is None:
|
||||
|
||||
@@ -676,7 +676,7 @@ class LazyToolBox(ToolBox):
|
||||
self._tool_panel_loaded_from_index = True
|
||||
return True
|
||||
|
||||
def _load_tool_panel(self):
|
||||
def _load_tool_panel(self) -> None:
|
||||
if getattr(self, "_tool_panel_loaded_from_index", False):
|
||||
return
|
||||
super()._load_tool_panel()
|
||||
|
||||
Reference in New Issue
Block a user