summaryrefslogtreecommitdiffstats
path: root/Objects/genericaliasobject.c
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-08-11 19:12:11 (GMT)
committerGitHub <noreply@github.com>2023-08-11 19:12:11 (GMT)
commitd93b4ac2ff7bce07fb1c8805f43838818598191c (patch)
treeed96f4cf84526f069de3cdedc0cd07365a981836 /Objects/genericaliasobject.c
parent666b68e8f252e3c6238d6eed1fc82937a774316f (diff)
downloadcpython-d93b4ac2ff7bce07fb1c8805f43838818598191c.zip
cpython-d93b4ac2ff7bce07fb1c8805f43838818598191c.tar.gz
cpython-d93b4ac2ff7bce07fb1c8805f43838818598191c.tar.bz2
gh-101162: Forbid using issubclass() with GenericAlias as the 1st arg (GH-103369)
Diffstat (limited to 'Objects/genericaliasobject.c')
-rw-r--r--Objects/genericaliasobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c
index df88734..faf517b 100644
--- a/Objects/genericaliasobject.c
+++ b/Objects/genericaliasobject.c
@@ -626,6 +626,7 @@ ga_vectorcall(PyObject *self, PyObject *const *args,
static const char* const attr_exceptions[] = {
"__class__",
+ "__bases__",
"__origin__",
"__args__",
"__unpacked__",