(significant_digits: int, scale: int)
| 147 | |
| 148 | |
| 149 | def _decimal_shape_fits(significant_digits: int, scale: int) -> bool: |
| 150 | if scale > _MAX_COMPATIBLE_DECIMAL_DIGITS: |
| 151 | return False |
| 152 | return scale >= 0 or significant_digits + (-scale) <= _MAX_COMPATIBLE_DECIMAL_DIGITS |
| 153 | |
| 154 | |
| 155 | def _is_digit(value: str) -> bool: |
no outgoing calls
no test coverage detected