You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:38:53 UTC

[buildstream] 01/05: _yaml.pyi: Adding declaration for _yaml.load()

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch tristan/artifact-extensions
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 49a81f9244507225402bd50e2c974d0fe18dc084
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Wed Dec 2 17:58:23 2020 +0900

    _yaml.pyi: Adding declaration for _yaml.load()
---
 src/buildstream/_yaml.pyi | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/buildstream/_yaml.pyi b/src/buildstream/_yaml.pyi
index 215866e..6f4b31b 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: ...