Skip to content

Commit a72a2ba

Browse files
committed
decimal: Python 3.13
1 parent 4f3c564 commit a72a2ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stdlib/@tests/stubtest_allowlists/linux-py313.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ _stat.SF_SYNTHETIC
66
asyncio.unix_events.EventLoop
77
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
88
asyncio.unix_events.__all__
9-
decimal.Context.abs
109
decimal.Context.add
1110
decimal.Context.canonical
1211
decimal.Context.compare

stdlib/_decimal.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ class Context:
214214
def Etop(self) -> int: ...
215215
def create_decimal(self, num: _DecimalNew = "0", /) -> Decimal: ...
216216
def create_decimal_from_float(self, f: float, /) -> Decimal: ...
217-
def abs(self, x: _Decimal, /) -> Decimal: ...
217+
if sys.version_info >= (3, 13) and sys.platform == "linux":
218+
def abs(self, a: _Decimal) -> Decimal: ...
219+
else:
220+
def abs(self, x: _Decimal, /) -> Decimal: ...
218221
def add(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
219222
def canonical(self, x: Decimal, /) -> Decimal: ...
220223
def compare(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...

0 commit comments

Comments
 (0)