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-04 15:03:54 +0900
commit07a91d1d7b9b7e53292e66511e159d96028a091a (patch)
tree510b144c12bc05f6204060da73ec1ccf43a69f40
parent878cedbcfdfcdac5f214c69396cfa49ee3f1fdf7 (diff)
downloadbuildstream-07a91d1d7b9b7e53292e66511e159d96028a091a.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