Skip to content

Commit 8f50f44

Browse files
bpo-44654: Do not export the union type related symbols (GH-27223)
1 parent 3ea5332 commit 8f50f44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Include/internal/pycore_unionobject.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
PyAPI_DATA(PyTypeObject) _PyUnion_Type;
11+
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-
PyAPI_FUNC(PyObject *) _Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
17-
PyAPI_FUNC(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)