Lines Matching defs:str
1205 "expected %.200s.__fspath__() to return str or bytes, "
2785 if isinstance(value, str):
2787 return str(int(bool(value)))
2807 if isinstance(requires, str):
3219 Path to be modified. May always be specified as a str, bytes, or a path-like object.
4256 path can be specified as either str, bytes, or a path-like object. If path is bytes,
4258 the filenames returned will be str.
4350 PyObject *str = PyUnicode_FromWideChar(abspath, wcslen(abspath));
4352 if (str == NULL) {
4356 Py_SETREF(str, PyUnicode_EncodeFSDefault(str));
4358 return str;
4551 PyErr_Format(PyExc_TypeError, "expected 'str', not '%.200s'",
7634 user: str
7650 user: str
14448 path can be specified as either str, bytes, or a path-like object. If path
14450 all other circumstances they will be str.
14561 If the object is str or bytes, then allow it to pass through with
14581 "expected str, bytes or os.PathLike object, "
14594 "expected %.200s.__fspath__() to return str or bytes, "
14611 If the object is str or bytes, then allow it to pass through as-is. If the