-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
pylint
] Show verbatim constant in magic-value-comparison
(`PLR20…
…04`) (#9694) ## Summary Tweaks PLR2004 to show the literal source text, rather than the constant value. I noticed this when I had a hexadecimal constant, and the linter turned it into base-10. Now, if you have `0x300`, it will show `0x300` instead of `768`. Also, added backticks around the constant in the output message. ## Test Plan `cargo test`
- Loading branch information
1 parent
95e1444
commit dacda0f
Showing
4 changed files
with
26 additions
and
14 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
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