ruff
[`pylint`] Fix false positives and negatives with `%b` format character (`PLE1300`, `PLE1307`)
#27560
Merged

[`pylint`] Fix false positives and negatives with `%b` format character (`PLE1300`, `PLE1307`) #27560

Andrej730
Andrej730 Baseline test for use of `%b` and `bad-string-format-type` - false po…
87c4f882
Andrej730 Baseline test for use of `%b` and `CFormatString` - no snapshot chang…
73e73a75
Andrej730 Switch to `CFormatType` (no functional changes)
e3a46888
Andrej730 `CFormatType`: parse `%b` only for bytes formatters
3afc0d06
Andrej730 Add explicit handling for `Ascii` and `Bytes`
51ded0a6
astral-sh-bot astral-sh-bot requested a review from ntBre ntBre 8 days ago
ntBre
ntBre commented on 2026-08-10
ntBre ntBre added bug
Andrej730 Revert `bad_string_format_type.rs` changes
966abd11
astral-sh-bot
Andrej730 Andrej730 requested a review from ntBre ntBre 4 days ago
ntBre ntBre changed the title [`pylint`] Fix false positive/negative with `%b` formatter [`pylint`] Fix false positives and negatives with `%b` format character (`PLE1300`, `PLE1307`) 4 days ago
ntBre
ntBre approved these changes on 2026-08-10
ntBre ntBre merged d23b7e88 into main 4 days ago
Andrej730 Andrej730 deleted the bad-string-format-bytes branch 4 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone