Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Apr 29, 2022
1 parent 154f08e commit ae4e4ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chris/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "caw"
version = "0.7.0"
version = "0.7.1"
description = "ChRIS client library"
authors = ["FNNDSC <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit ae4e4ce

Please sign in to comment.