Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

brainprep.wrappers.is_list_str

brainprep.wrappers.is_list_str(command)[source]

Check whether the input is a list containing only strings.

Parameters:
commandAny

The object to validate.

Returns:
bool

True if command is a list and every element is a string, otherwise False.