Skip to content

Update supported_api_gen.py: remove an invalid escape sequence "\_" using a raw string #50243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyspark/pandas/supported_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _escape_func_str(func_str: str) -> str:
# TODO: Take into account that this function can create links incorrectly
# We can create alias links or links to parent methods
if func_str.endswith("_"):
return func_str[:-1] + "\_" # noqa: W605
return func_str[:-1] + r"\_"
else:
return func_str

Expand Down