Skip to content

Commit 9339001

Browse files
committed
+ fix __format__/__round__ signatures
1 parent 3685ae6 commit 9339001

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Modules/_decimal/_decimal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,15 +3701,15 @@ _decimal.Decimal.__format__
37013701
37023702
self as dec: self
37033703
fmtarg: object
3704-
override: object = NULL
3704+
override: object(c_default="NULL") = None
37053705
37063706
Formats the Decimal according to fmtarg.
37073707
[clinic start generated code]*/
37083708

37093709
static PyObject *
37103710
_decimal_Decimal___format___impl(PyObject *dec, PyObject *fmtarg,
37113711
PyObject *override)
3712-
/*[clinic end generated code: output=4b3640b7f0c8b6a5 input=d2b593420b27b367]*/
3712+
/*[clinic end generated code: output=4b3640b7f0c8b6a5 input=b4aa4aad37438070]*/
37133713
{
37143714
PyObject *result = NULL;
37153715
PyObject *dot = NULL;
@@ -4200,14 +4200,14 @@ PyDec_AsFloat(PyObject *dec)
42004200
_decimal.Decimal.__round__
42014201
42024202
self as dec: self
4203-
ndigits as x: object = NULL
4203+
ndigits as x: object(c_default="NULL") = None
42044204
42054205
Return the Integral closest to self, rounding half toward even.
42064206
[clinic start generated code]*/
42074207

42084208
static PyObject *
42094209
_decimal_Decimal___round___impl(PyObject *dec, PyObject *x)
4210-
/*[clinic end generated code: output=5089b98ed18bb5e3 input=e34c43bf3692c2c8]*/
4210+
/*[clinic end generated code: output=5089b98ed18bb5e3 input=a3986615e1ad5b2a]*/
42114211
{
42124212
PyObject *result;
42134213
uint32_t status = 0;

Modules/_decimal/clinic/_decimal.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)