Skip to content

Commit 06a2024

Browse files
authored
decimal: add __libmpdec_version__ (#7311)
1 parent b74acc7 commit 06a2024

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stdlib/_decimal.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from decimal import *
2+
3+
__libmpdec_version__: str

stdlib/decimal.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ _Decimal = Union[Decimal, int]
88
_DecimalNew = Union[Decimal, float, str, tuple[int, Sequence[int], int]]
99
_ComparableNum = Union[Decimal, float, numbers.Rational]
1010

11+
__libmpdec_version__: str
12+
1113
class DecimalTuple(NamedTuple):
1214
sign: int
1315
digits: tuple[int, ...]

0 commit comments

Comments
 (0)