Closed DenverCoder1 closed 1 year ago
Merging #955 (e87cc84) into master (2a4b784) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #955 +/- ##
==========================================
+ Coverage 90.48% 90.50% +0.01%
==========================================
Files 24 24
Lines 4393 4402 +9
==========================================
+ Hits 3975 3984 +9
Misses 418 418
Impacted Files | Coverage Δ | |
---|---|---|
babel/numbers.py | 98.04% <100.00%> (+0.04%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This came up while I was looking for ways to improve type-safety - specifically that the type of
decimal_tuple.exponent
inget_decimal_precision()
isint | Literal['n', 'N', 'F']
and can't be compared with 0 or taken the absolute value of if it is not an int.This fixes that type issue but I'm making this a separate PR since it also fixes NaN and Infinity cases in other areas, so it won't raise exceptions when formatting.
Fixes #132