]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-44654: Do not export the union type related symbols (GH-27223). (GH-27225)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 18 Jul 2021 15:37:41 +0000 (18:37 +0300)
committerGitHub <noreply@github.com>
Sun, 18 Jul 2021 15:37:41 +0000 (18:37 +0300)
(cherry picked from commit 8f50f44592190b5a8cb115f0d58d577036e68308)

Include/internal/pycore_unionobject.h

index ec6cc01c09175bc84038788331e81f55d3611d4f..9962f57610387d67e851b90f20f35cf93965954b 100644 (file)
@@ -10,11 +10,11 @@ extern "C" {
 
 extern PyTypeObject _PyUnion_Type;
 #define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type)
-PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *);
+extern PyObject *_Py_union_type_or(PyObject *, PyObject *);
 
 #define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType)
-PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
-PyObject *_Py_make_parameters(PyObject *);
+extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
+extern PyObject *_Py_make_parameters(PyObject *);
 
 #ifdef __cplusplus
 }