Skip to content

Update rule B005 docs#8028

Merged
charliermarsh merged 1 commit intoastral-sh:mainfrom
ahmedabdou14:docs/fix_rule_b005_example
Oct 17, 2023
Merged

Update rule B005 docs#8028
charliermarsh merged 1 commit intoastral-sh:mainfrom
ahmedabdou14:docs/fix_rule_b005_example

Conversation

@ahmedabdou14
Copy link
Contributor

@ahmedabdou14 ahmedabdou14 commented Oct 17, 2023

Summary

Rule B005 of flake8-bugbear docs has a typo in one of the examples that leads to a confusion in the correctness of .strip() method

image

# Wrong output (used in docs) 
"text.txt".strip(".txt")  # "ex" 

# Correct output
"text.txt".strip(".txt")  # "e"

@ahmedabdou14 ahmedabdou14 mentioned this pull request Oct 17, 2023
@github-actions
Copy link
Contributor

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

@ahmedabdou14 ahmedabdou14 changed the title Update strip_with_multi_characters.rs doc Update rule B005 docs Oct 17, 2023
@charliermarsh charliermarsh added the documentation Improvements or additions to documentation label Oct 17, 2023
@charliermarsh charliermarsh merged commit d85950c into astral-sh:main Oct 17, 2023
@charliermarsh
Copy link
Member

Thank you!

@ahmedabdou14 ahmedabdou14 deleted the docs/fix_rule_b005_example branch October 17, 2023 22:39
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants