parameters: (self, node, node_name)
return_statement: return True
docstring: Return True if this YAML node is a Scalar and a valid boolean.
docstring_summary: Return True if this YAML node is a Scalar and a valid boolean.
docstring_tokens: Return True if this YAML node is a Scalar and a valid boolean .
function: def is_scalar_bool_node(self, node, node_name):
          # type: (Union[yaml.nodes.MappingNode, yaml.nodes.ScalarNode, yaml.nodes.SequenceNode], str) -> bool
          """Return True if this YAML node is a Scalar and a valid boolean."""
          if not self._is_node_type(node, node_name, "scalar"):
              return False
  
          if not (node.value == "true" or node.value == "false"):
              self._add_node_error(
                  node, ERROR_ID_IS_NODE_VALID_BOOL,
                  "Illegal bool value for '%s', expected either 'true' or 'false'." % node_name)
              return False
  
          return True
function_tokens: def is_scalar_bool_node ( self , node , node_name ) : # type: (Union[yaml.nodes.MappingNode, yaml.nodes.ScalarNode, yaml.nodes.SequenceNode], str) -> bool if not self . _is_node_type ( node , node_name , "scalar" ) : return False if not ( node . value == "true" or node . value == "false" ) : self . _add_node_error ( node , ERROR_ID_IS_NODE_VALID_BOOL , "Illegal bool value for '%s', expected either 'true' or 'false'." % node_name ) return False return True