summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-08-24 16:52:39 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-09-01 14:23:26 +0900
commit0ed586badff7e5879f3bffee7c44462684304c38 (patch)
tree8a0acdd5fe7b95983fe85342bd2c9efa2ae1000d
parent02887b9184b90d3927b380d29c7e9e8a17dfdcf3 (diff)
downloadbuildstream-0ed586badff7e5879f3bffee7c44462684304c38.tar.gz
plugin.py: Fixed annotations for node_get_project_path() to return a string.
-rw-r--r--src/buildstream/plugin.py2
1 files changed, 1 insertions, 1 deletions
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