1#ifndef Py_INTERNAL_UNIONOBJECT_H 2#define Py_INTERNAL_UNIONOBJECT_H 3#ifdef __cplusplus 4extern "C" { 5#endif 6 7#ifndef Py_BUILD_CORE 8# error "this header requires Py_BUILD_CORE define" 9#endif 10 11extern PyTypeObject _PyUnion_Type; 12#define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type) 13extern PyObject *_Py_union_type_or(PyObject *, PyObject *); 14 15#define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType) 16extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *); 17extern PyObject *_Py_make_parameters(PyObject *); 18extern PyObject *_Py_union_args(PyObject *self); 19 20#ifdef __cplusplus 21} 22#endif 23#endif /* !Py_INTERNAL_UNIONOBJECT_H */ 24