mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-02 07:53:45 +08:00
DecimalTuple can have string exponent (#9194)
This commit is contained in:
1 parent
0bd4e3ce1a
commit
e8111ea017
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user