File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,8 @@ static PyType_Slot blake2b_type_slots[] = {
407407 {0 ,0 }
408408};
409409
410+ // Using PyType_GetModuleState() on this type is safe since
411+ // it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
410412PyType_Spec blake2b_type_spec = {
411413 .name = "_blake2.blake2b" ,
412414 .basicsize = sizeof (BLAKE2bObject ),
Original file line number Diff line number Diff line change @@ -406,6 +406,8 @@ static PyType_Slot blake2s_type_slots[] = {
406406 {0 ,0 }
407407};
408408
409+ // Using PyType_GetModuleState() on this type is safe since
410+ // it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
409411PyType_Spec blake2s_type_spec = {
410412 .name = "_blake2.blake2s" ,
411413 .basicsize = sizeof (BLAKE2sObject ),
You can’t perform that action at this time.
0 commit comments