Skip to content

Commit

Permalink
DecimalTuple can have string exponent (#9194)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Nov 14, 2022
1 parent 0bd4e3c commit e8111ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/_decimal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from _typeshed import Self
from collections.abc import Container, Sequence
from types import TracebackType
from typing import Any, ClassVar, NamedTuple, Union, overload
from typing_extensions import TypeAlias
from typing_extensions import Literal, TypeAlias

_Decimal: TypeAlias = Decimal | int
_DecimalNew: TypeAlias = Union[Decimal, float, str, tuple[int, Sequence[int], int]]
Expand All @@ -16,7 +16,7 @@ __libmpdec_version__: str
class DecimalTuple(NamedTuple):
sign: int
digits: tuple[int, ...]
exponent: int
exponent: int | Literal["n", "N", "F"]

ROUND_DOWN: str
ROUND_HALF_UP: str
Expand Down

0 comments on commit e8111ea

Please sign in to comment.