          if kwargs.pop('many', False):
              return cls.many_init(*args, **kwargs)
          return super().__new__(cls, *args, **kwargs)
  
      @classmethod
      def many_init(cls, *args, **kwargs):
          """
          This method implements the creation of a `ListSerializer` parent
 
</s>
    # Allow type checkers to make serializers generic.
    def __class_getitem__(cls, *args, **kwargs):
        return cls

          if kwargs.pop('many', False):
              return cls.many_init(*args, **kwargs)
          return super().__new__(cls, *args, **kwargs)
  
    # Allow type checkers to make serializers generic.
    def __class_getitem__(cls, *args, **kwargs):
        return cls

      @classmethod
      def many_init(cls, *args, **kwargs):
          """
          This method implements the creation of a `ListSerializer` parent
keep keep keep add keep keep keep keep
 Allow type checkers to make serializers generic (#7385)
rest_framework/serializers.py