The package needs porting to Python 3.13.
Seems to be addressed in https://github.com/encode/django-rest-framework/pull/9527/commits/d327354b106dcb132f10e2f0698d8ce1126006b8, which is included in version 3.16.