-
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
] Further special cases added to `verbose-decimal-constructo…
…r (FURB157)` (#14216) This PR accounts for further subtleties in `Decimal` parsing: - Strings which are empty modulo underscores and surrounding whitespace are skipped - `Decimal("-0")` is skipped - `Decimal("{integer literal that is longer than 640 digits}")` are skipped (see linked issue for explanation) NB: The snapshot did not need to be updated since the new test cases are "Ok" instances and added below the diff. Closes #14204
- Loading branch information
Showing
2 changed files
with
30 additions
and
24 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