diff options
Diffstat (limited to 'src/buildstream/_yaml.pyx')
-rw-r--r-- | src/buildstream/_yaml.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx index 9ff7e3d0c..06d9054d4 100644 --- a/src/buildstream/_yaml.pyx +++ b/src/buildstream/_yaml.pyx @@ -763,7 +763,7 @@ def node_del(Node node, str key, bint safe=False): # Returns: # (bool): Whether or not maybenode was a Node # -def is_node(maybenode): +cpdef bint is_node(object maybenode): # It's a programming error to give this a Node which isn't a mapping # so assert that. assert (type(maybenode) is not Node) or (type(maybenode.value) is dict) @@ -1119,7 +1119,7 @@ cpdef object node_sanitize(object node, object dict_type=OrderedDict): # LoadError: In the case that the specified node contained # one or more invalid keys # -def node_validate(Node node, list valid_keys): +cpdef void node_validate(Node node, list valid_keys) except *: # Probably the fastest way to do this: https://stackoverflow.com/a/23062482 cdef set valid_keys_set = set(valid_keys) |