Skip to content

Commit a6670cd

Browse files
authoredJul 18, 2021
[3.10] bpo-44654: Do not export the union type related symbols (GH-27223). (GH-27225)
(cherry picked from commit 8f50f44)
1 parent 85b5829 commit a6670cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎Include/internal/pycore_unionobject.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ extern "C" {
1010

1111
extern PyTypeObject _PyUnion_Type;
1212
#define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type)
13-
PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *);
13+
extern PyObject *_Py_union_type_or(PyObject *, PyObject *);
1414

1515
#define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType)
16-
PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
17-
PyObject *_Py_make_parameters(PyObject *);
16+
extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
17+
extern PyObject *_Py_make_parameters(PyObject *);
1818

1919
#ifdef __cplusplus
2020
}

0 commit comments

Comments
 (0)
Please sign in to comment.