Skip to content

Commit f03f742

Browse files
Make docstring a raw string to avoid SyntaxWarning
Currently, `import docarray.helper` will emit a `SyntaxWarning` due to invalid escape sequences in the docstring for `get_paths`. Making it a raw-string is a simple fix to this. Signed-off-by: Nathan McDougall <[email protected]> Signed-off-by: Nathan McDougall <[email protected]>
1 parent f5fc0f6 commit f03f742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docarray/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_paths(
221221
size: Optional[int] = None,
222222
exclude_regex: Optional[str] = None,
223223
) -> Generator[str, None, None]:
224-
"""
224+
r"""
225225
Yield file paths described by `patterns`.
226226
227227
---

0 commit comments

Comments
 (0)