  
  
  # Tests for field input and output values.
  # ----------------------------------------
  
  def get_items(mapping_or_list_of_two_tuples):
      # Tests accept either lists of two tuples, or dictionaries.
 
</s>
class TestTyping(TestCase):
    @pytest.mark.skipif(
        sys.version_info < (3, 7),
        reason="subscriptable classes requires Python 3.7 or higher",
    )
    def test_field_is_subscriptable(self):
        assert serializers.Field is serializers.Field["foo"]


  
  
class TestTyping(TestCase):
    @pytest.mark.skipif(
        sys.version_info < (3, 7),
        reason="subscriptable classes requires Python 3.7 or higher",
    )
    def test_field_is_subscriptable(self):
        assert serializers.Field is serializers.Field["foo"]


  # Tests for field input and output values.
  # ----------------------------------------
  
  def get_items(mapping_or_list_of_two_tuples):
      # Tests accept either lists of two tuples, or dictionaries.
keep add keep keep keep keep keep
 Allow generic requests, responses, fields, views (#8825)

Allow Request, Response, Field, and GenericAPIView to be subscriptable.
This allows the classes to be made generic for type checking.

This is especially useful since monkey patching DRF can be problematic
as seen in this [issue][1].

[1]: https://github.com/typeddjango/djangorestframework-stubs/issues/299
tests/test_fields.py