From e8111ea0170c2a75e085dcc7542ee8bd6a4cea4b Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 14 Nov 2022 13:09:16 +0300 Subject: [PATCH] `DecimalTuple` can have string exponent (#9194) --- stdlib/_decimal.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/_decimal.pyi b/stdlib/_decimal.pyi index 50c0f23734cd..ca97f69e2147 100644 --- a/stdlib/_decimal.pyi +++ b/stdlib/_decimal.pyi @@ -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]] @@ -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