Skip to content

Commit e8111ea

Browse files
authored
DecimalTuple can have string exponent (#9194)
1 parent 0bd4e3c commit e8111ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/_decimal.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from _typeshed import Self
44
from collections.abc import Container, Sequence
55
from types import TracebackType
66
from typing import Any, ClassVar, NamedTuple, Union, overload
7-
from typing_extensions import TypeAlias
7+
from typing_extensions import Literal, TypeAlias
88

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

2121
ROUND_DOWN: str
2222
ROUND_HALF_UP: str

0 commit comments

Comments
 (0)