diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-12-02 17:58:23 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-12-07 17:51:13 +0900 |
commit | 4828aa399f621e3cdafdc57c8c8030f955c11b18 (patch) | |
tree | 3f2fe3aa6282e97ef05d256f6fe1cda63bd385d7 | |
parent | 5f68adb3f80b1d84edf900fde8cf40c84c297f91 (diff) | |
download | buildstream-4828aa399f621e3cdafdc57c8c8030f955c11b18.tar.gz |
_yaml.pyi: Adding declaration for _yaml.load()
-rw-r--r-- | src/buildstream/_yaml.pyi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buildstream/_yaml.pyi b/src/buildstream/_yaml.pyi index 215866e3e..6f4b31bd5 100644 --- a/src/buildstream/_yaml.pyi +++ b/src/buildstream/_yaml.pyi @@ -1,3 +1,5 @@ -# FIXME: This file is currently a placeholder so that mypy doesn't complain -# about `_yaml` module being missing. In future, we should consider adding -# stubs for Cythonized code. +from typing import Optional + +from .node import MappingNode + +def load(filename: str, shortname: str, copy_tree: bool = False, project: Optional[object] = None) -> MappingNode: ... |