Closed JaeHyuckSa closed 5 months ago
I added __class_getitem__ of classes in DRF version 3.15.
__class_getitem__
The following are class items with __class_getitem__ added.
fields.Field.__class_getitem__
generics.GenericAPIView.__class_getitem__
request.Request.__class_getitem__
response.Response.__class_getitem__
Upstream PR: https://github.com/encode/django-rest-framework/pull/8825
Related PR #582 I had PR deleted due to my mistake... I apologize.
Regarding your inquiry, is it better to coordinate the current BaseSerializer __class_getitem__?
BaseSerializer
https://github.com/typeddjango/djangorestframework-stubs/blob/41773dd23a596b5f8dee10028b5cbbd1d451710d/rest_framework-stubs/serializers.pyi#L82
I have made things!
I added
__class_getitem__
of classes in DRF version 3.15.The following are class items with
__class_getitem__
added.fields.Field.__class_getitem__
generics.GenericAPIView.__class_getitem__
request.Request.__class_getitem__
response.Response.__class_getitem__
Related issues
Upstream PR: https://github.com/encode/django-rest-framework/pull/8825
Related PR #582 I had PR deleted due to my mistake... I apologize.