From d5fd17727c5b5fe3599ca2e0ee92c6c85b0a92d7 Mon Sep 17 00:00:00 2001 From: drodarie Date: Tue, 21 May 2024 16:50:24 +0200 Subject: [PATCH] Re-add documentation --- bsb_yaml/parser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bsb_yaml/parser.py b/bsb_yaml/parser.py index 5fac3bb..c8cfa6c 100644 --- a/bsb_yaml/parser.py +++ b/bsb_yaml/parser.py @@ -11,6 +11,15 @@ class YAMLConfigurationParser(ParsesReferences, ConfigurationParser): data_extensions = ("yaml", "yml") def parse(self, content, path=None): + """ + Parse the YAML + + :param content: File contents + :type content: str + :param path: Path the content came from + :type path: str + """ + content = yaml.safe_load(content) meta = {"path": path} return content, meta