mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
bpo-44654: Do not export the union type related symbols (GH-27223)
This commit is contained in:
parent
3ea5332a43
commit
8f50f44592
1 changed files with 4 additions and 4 deletions
|
|
@ -8,13 +8,13 @@ extern "C" {
|
||||||
# error "this header requires Py_BUILD_CORE define"
|
# error "this header requires Py_BUILD_CORE define"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PyAPI_DATA(PyTypeObject) _PyUnion_Type;
|
extern PyTypeObject _PyUnion_Type;
|
||||||
#define _PyUnion_Check(op) Py_IS_TYPE(op, &_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)
|
#define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType)
|
||||||
PyAPI_FUNC(PyObject *) _Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
|
extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
|
||||||
PyAPI_FUNC(PyObject *) _Py_make_parameters(PyObject *);
|
extern PyObject *_Py_make_parameters(PyObject *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue