Skip to content

Commit

Permalink
Borrow _Py_union_type_or
Browse files Browse the repository at this point in the history
Reviewed By: alexmalyshev

Differential Revision: D60637793

fbshipit-source-id: 7ddc7643575a62dd2fc92d76cfe0ab45de0dc2f9
  • Loading branch information
jbower-fb authored and facebook-github-bot committed Aug 5, 2024
1 parent 9c2a52e commit b370f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_unionobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif

CiAPI_DATA(PyTypeObject) _PyUnion_Type;
extern PyTypeObject _PyUnion_Type;
#define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type)
CiAPI_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)
extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
Expand Down

0 comments on commit b370f07

Please sign in to comment.