pyvista.core._validation.check.check_string# check_string(obj, /, *, allow_subclass=True, name='Object')[source]# Check if an object is an instance of str. Parameters: objstrObject to check. allow_subclassbool, default: TrueIf True, the object’s type must be str or a subclass of str. Otherwise, subclasses are not allowed. namestr, default: “Object”Variable name to use in the error messages if any are raised. Raises: TypeErrorIf input is not an instance of str. See also check_contains check_iterable_items check_sequence check_instance Examples Check if an object is a string. >>> from pyvista import _validation >>> _validation.check_string("eggs")