gh-101162: Forbid using issubclass() with GenericAlias as the 1st arg (GH-103369)

This commit is contained in:
Nikita Sobolev 2023-08-11 22:12:11 +03:00 committed by GitHub
parent 666b68e8f2
commit d93b4ac2ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 1 deletions

View file

@ -2812,7 +2812,7 @@ object_issubclass(PyThreadState *tstate, PyObject *derived, PyObject *cls)
return -1;
}
/* Probably never reached anymore. */
/* Can be reached when infinite recursion happens. */
return recursive_issubclass(derived, cls);
}