summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2021-07-22 21:06:54 (GMT)
committerGitHub <noreply@github.com>2021-07-22 21:06:54 (GMT)
commit96c4cbd96c769e92869c62ba898dd9eb670baa81 (patch)
treebf57868bec1d475c469214d42f89d29158b60244 /Modules/clinic
parentf1afef5e0d93d66fbf3c9aaeab8b3b8da9617583 (diff)
downloadcpython-96c4cbd96c769e92869c62ba898dd9eb670baa81.zip
cpython-96c4cbd96c769e92869c62ba898dd9eb670baa81.tar.gz
cpython-96c4cbd96c769e92869c62ba898dd9eb670baa81.tar.bz2
bpo-44353: Implement typing.NewType __call__ method in C (#27262)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Denis Laxalde <denis@laxalde.org>
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/_typingmodule.c.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/clinic/_typingmodule.c.h b/Modules/clinic/_typingmodule.c.h
new file mode 100644
index 0000000..ea415e6
--- /dev/null
+++ b/Modules/clinic/_typingmodule.c.h
@@ -0,0 +1,12 @@
+/*[clinic input]
+preserve
+[clinic start generated code]*/
+
+PyDoc_STRVAR(_typing__idfunc__doc__,
+"_idfunc($module, x, /)\n"
+"--\n"
+"\n");
+
+#define _TYPING__IDFUNC_METHODDEF \
+ {"_idfunc", (PyCFunction)_typing__idfunc, METH_O, _typing__idfunc__doc__},
+/*[clinic end generated code: output=e7ea2a3cb7ab301a input=a9049054013a1b77]*/