Skip to content

Fix invalid escape sequence in Whitespace docstring#2054

Open
eyupcanakman wants to merge 1 commit into
huggingface:mainfrom
eyupcanakman:fix/whitespace-docstring-escape
Open

Fix invalid escape sequence in Whitespace docstring#2054
eyupcanakman wants to merge 1 commit into
huggingface:mainfrom
eyupcanakman:fix/whitespace-docstring-escape

Conversation

@eyupcanakman
Copy link
Copy Markdown

Importing tokenizers.pre_tokenizers emits SyntaxWarning: invalid escape sequence '\w' from the Whitespace class docstring. Drop the inline regex literal from the docstring; the regex form is still documented in docs/source/components.rst.

Closes #1791.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SyntaxWarning: invalid escape sequence '\w'

1 participant