From ae4e4cedef46d0b6ca4e443d42786b968ead713c Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Fri, 29 Apr 2022 07:47:06 -0400 Subject: [PATCH] Add type hints --- chris/client.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chris/client.py b/chris/client.py index 2c21411..f7d2714 100644 --- a/chris/client.py +++ b/chris/client.py @@ -117,7 +117,7 @@ def get_plugin_by_name( self, name_exact: Union[PluginName, str], version: Optional[Union[PluginVersion, str]] = None, - ): + ) -> Plugin: search = self.search_plugin(name_exact, version) return peek(search, mt=PluginNotFoundError) @@ -133,7 +133,7 @@ def search_plugin( def get_plugin_instance( self, plugin: Union[PluginInstanceUrl, PluginInstanceId, int, str] - ): + ) -> PluginInstance: """ Get a plugin instance. :param plugin: Either a plugin instance ID or URL diff --git a/pyproject.toml b/pyproject.toml index 760f926..cbf9da4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "caw" -version = "0.7.0" +version = "0.7.1" description = "ChRIS client library" authors = ["FNNDSC "] license = "MIT"