Skip to content

Commit c42817b

Browse files
committed
chaged check to PySet_CheckExact
1 parent 195e64c commit c42817b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ dummy_func(
13801380
inst(SET_ADD, (set, unused[oparg-1], v -- set, unused[oparg-1])) {
13811381
PyObject *set_o = PyStackRef_AsPyObjectBorrow(set);
13821382
// gh-154902: user code can rebind __conditional_annotations__
1383-
if (!PySet_Check(set_o)) {
1383+
if (!PySet_CheckExact(set_o)) {
13841384
_PyErr_Format(tstate, PyExc_TypeError,
13851385
"'%T' object is not a set", set_o);
13861386
PyStackRef_CLOSE(v);

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)