(value: str)
| 74 | |
| 75 | |
| 76 | def _decimal_from_text(value: str) -> decimal.Decimal: |
| 77 | if not _numeric_literal_fits(value): |
| 78 | raise ValueError("invalid numeric literal") |
| 79 | return _canonical_decimal(decimal.Decimal(value)) |
| 80 | |
| 81 | |
| 82 | def _numeric_literal_fits(value: str) -> bool: |
no test coverage detected