diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-10 16:36:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 16:36:33 (GMT) |
commit | 6df49134b3f59a84c6d9a3883b23fa2873db2534 (patch) | |
tree | f054196ffc5fbd75dfcb538c90beb92260f81cd9 /Modules/_typingmodule.c | |
parent | 0becae366c9d0b98d3f53849098e76bc8b1ef574 (diff) | |
download | cpython-6df49134b3f59a84c6d9a3883b23fa2873db2534.zip cpython-6df49134b3f59a84c6d9a3883b23fa2873db2534.tar.gz cpython-6df49134b3f59a84c6d9a3883b23fa2873db2534.tar.bz2 |
[3.13] gh-118895: Call PyType_Ready() on typing.NoDefault (GH-118897) (#118914)
(cherry picked from commit 13d7cf997bc9c22cf67c42fd799413e8325e0039)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Modules/_typingmodule.c')
-rw-r--r-- | Modules/_typingmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_typingmodule.c b/Modules/_typingmodule.c index 09fbb3c..37af00f 100644 --- a/Modules/_typingmodule.c +++ b/Modules/_typingmodule.c @@ -63,6 +63,9 @@ _typing_exec(PyObject *m) if (PyModule_AddObjectRef(m, "TypeAliasType", (PyObject *)&_PyTypeAlias_Type) < 0) { return -1; } + if (PyType_Ready(&_PyNoDefault_Type) < 0) { + return -1; + } if (PyModule_AddObjectRef(m, "NoDefault", (PyObject *)&_Py_NoDefaultStruct) < 0) { return -1; } |