From 07a91d1d7b9b7e53292e66511e159d96028a091a Mon Sep 17 00:00:00 2001 From: Tristan van Berkom Date: Mon, 24 Aug 2020 16:52:39 +0900 Subject: plugin.py: Fixed annotations for node_get_project_path() to return a string. --- src/buildstream/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index deb105a3b..bc61ae7d6 100644 --- a/src/buildstream/plugin.py +++ b/src/buildstream/plugin.py @@ -364,7 +364,7 @@ class Plugin: """ return self.__kind - def node_get_project_path(self, node, *, check_is_file=False, check_is_dir=False): + def node_get_project_path(self, node, *, check_is_file=False, check_is_dir=False) -> str: """Fetches a project path from a dictionary node and validates it Paths are asserted to never lead to a directory outside of the -- cgit v1.2.1