Skip to content
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

docs(python): Be more explicit about behaviour in str.strip_chars / strip_chars_start / strip_chars_end docstrings #13697

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

henryharbeck
Copy link
Contributor

I found the following sentence in the docstring to (primarily in the case of strip_chars) make it sound like characters anywhere in the string can be stripped, rather than just leading/trailing.

All combinations of this set of characters will be stripped. If set to None (default), all whitespace is removed instead.

With strip_chars I missed the "Remove leading and trailing characters." sentence that provides all the additional context.

This PR makes the behaviour of the methods more explicit throughout the docstring and removes wording that could pontentially be understood as conflicting.

@github-actions github-actions bot added documentation Improvements or additions to documentation python Related to Python Polars labels Jan 13, 2024
Copy link
Member

@stinodego stinodego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a fine clarification to me!

@stinodego stinodego changed the title docs(python): be more explicit about behaviour in str.strip_chars / strip_chars_start / strip_chars_end docstrings docs(python): Be more explicit about behaviour in str.strip_chars / strip_chars_start / strip_chars_end docstrings Jan 14, 2024
@stinodego stinodego merged commit 412b6b6 into pola-rs:main Jan 14, 2024
13 checks passed
@henryharbeck henryharbeck deleted the strip_chars_docstring branch January 14, 2024 08:31
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 2024
… `strip_chars_start` / `strip_chars_end` docstrings (pola-rs#13697)

Co-authored-by: Henry Harbeck <henry.harbeck@canstar.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants