Skip to content

Commit 46c3fbf

Browse files
Update Python/intrinsics.c
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent fc16e15 commit 46c3fbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/intrinsics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ add_conditional_annotation(PyThreadState* tstate, PyObject *conditional_annotati
275275
PyObject *index)
276276
{
277277
// gh-154902: user code can rebind __conditional_annotations__ to any object
278-
if (!PySet_Check(conditional_annotations)) {
278+
if (!PySet_CheckExact(conditional_annotations)) {
279279
_PyErr_Format(tstate, PyExc_TypeError,
280280
"__conditional_annotations__ must be a set, not %T",
281281
conditional_annotations);

0 commit comments

Comments
 (0)