Skip to content

Commit 57d7173

Browse files
WIP: pythongh-107704: Argument Clinic: add support for deprecating keyword use of parameters
1 parent 608927b commit 57d7173

File tree

3 files changed

+459
-295
lines changed

3 files changed

+459
-295
lines changed

Modules/_testclinic.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,24 @@ depr_star_pos2_len2_with_kwd_impl(PyObject *module, PyObject *a, PyObject *b,
14501450
}
14511451

14521452

1453+
/*[clinic input]
1454+
depr_keyword_1
1455+
a: object
1456+
/
1457+
b: object
1458+
c: object = None
1459+
/ [from 3.14]
1460+
d: object = None
1461+
[clinic start generated code]*/
1462+
1463+
static PyObject *
1464+
depr_keyword_1_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
1465+
PyObject *d)
1466+
/*[clinic end generated code: output=966537d4b9c21546 input=964e3a27f846b519]*/
1467+
{
1468+
Py_RETURN_NONE;
1469+
}
1470+
14531471
// Reset PY_VERSION_HEX
14541472
#undef PY_VERSION_HEX
14551473
#define PY_VERSION_HEX _SAVED_PY_VERSION

0 commit comments

Comments
 (0)