Skip to content

Commit

Permalink
WIP: pythongh-107704: Argument Clinic: add support for deprecating ke…
Browse files Browse the repository at this point in the history
…yword use of parameters
  • Loading branch information
serhiy-storchaka committed Aug 14, 2023
1 parent 608927b commit 57d7173
Show file tree
Hide file tree
Showing 3 changed files with 459 additions and 295 deletions.
18 changes: 18 additions & 0 deletions Modules/_testclinic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,24 @@ depr_star_pos2_len2_with_kwd_impl(PyObject *module, PyObject *a, PyObject *b,
}


/*[clinic input]
depr_keyword_1
a: object
/
b: object
c: object = None
/ [from 3.14]
d: object = None
[clinic start generated code]*/

static PyObject *
depr_keyword_1_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
PyObject *d)
/*[clinic end generated code: output=966537d4b9c21546 input=964e3a27f846b519]*/
{
Py_RETURN_NONE;
}

// Reset PY_VERSION_HEX
#undef PY_VERSION_HEX
#define PY_VERSION_HEX _SAVED_PY_VERSION
Expand Down
Loading

0 comments on commit 57d7173

Please sign in to comment.