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[] = {
407
407
{0 ,0 }
408
408
};
409
409
410
+ // Using PyType_GetModuleState() on this type is safe since
411
+ // it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
410
412
PyType_Spec blake2b_type_spec = {
411
413
.name = "_blake2.blake2b" ,
412
414
.basicsize = sizeof (BLAKE2bObject ),
Original file line number Diff line number Diff line change @@ -406,6 +406,8 @@ static PyType_Slot blake2s_type_slots[] = {
406
406
{0 ,0 }
407
407
};
408
408
409
+ // Using PyType_GetModuleState() on this type is safe since
410
+ // it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
409
411
PyType_Spec blake2s_type_spec = {
410
412
.name = "_blake2.blake2s" ,
411
413
.basicsize = sizeof (BLAKE2sObject ),
You can’t perform that action at this time.
0 commit comments