mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
This commit is contained in:
parent
484b40bf18
commit
7546914e3f
34 changed files with 58 additions and 58 deletions
|
@ -9,10 +9,10 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
extern PyTypeObject _PyUnion_Type;
|
||||
#define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type)
|
||||
#define _PyUnion_Check(op) Py_IS_TYPE((op), &_PyUnion_Type)
|
||||
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)
|
||||
extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
|
||||
extern PyObject *_Py_make_parameters(PyObject *);
|
||||
extern PyObject *_Py_union_args(PyObject *self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue