-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
refurb
] Avoid triggering hardcoded-string-charset
for reordered …
…sets (#14233) ## Summary It's only safe to enforce the `x in "1234567890"` case if `x` is exactly one character, since the set on the right has been reordered as compared to `string.digits`. We can't know if `x` is exactly one character unless it's a literal. And if it's a literal, well, it's kind of silly code in the first place? Closes #13802.
- Loading branch information
1 parent
1279c20
commit 555a5c9
Showing
4 changed files
with
88 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.