summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2022-04-28 15:24:19 (GMT)
committerGitHub <noreply@github.com>2022-04-28 15:24:19 (GMT)
commit0ef8d921f5c6945aa8f386e472c4110b81ac773d (patch)
tree4c06fd7aa389289ccf3404fec29402f891d3ab91 /Include
parent4ed3900041c688a02dca1eb3323083d720dd0d93 (diff)
downloadcpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.zip
cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.gz
cpython-0ef8d921f5c6945aa8f386e472c4110b81ac773d.tar.bz2
gh-91603: Speed up isinstance/issubclass on union types (GH-91631)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_unionobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h
index 9962f57..a9ed565 100644
--- a/Include/internal/pycore_unionobject.h
+++ b/Include/internal/pycore_unionobject.h
@@ -15,6 +15,7 @@ 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 *);
extern PyObject *_Py_make_parameters(PyObject *);
+extern PyObject *_Py_union_args(PyObject *self);
#ifdef __cplusplus
}