  inspectors.py   # Per-endpoint view introspection
  
  See schemas.__init__.py for package overview.
  """
  import re
  import warnings
  from collections import OrderedDict
  from urllib import parse
  from weakref import WeakKeyDictionary
  
  from django.db import models
  from django.utils.encoding import force_text, smart_text
  from django.utils.translation import gettext_lazy as _
 
</s> remove from django.db import models
from django.utils.encoding import force_text, smart_text
from django.utils.translation import gettext_lazy as _

from rest_framework import exceptions, serializers
from rest_framework.compat import coreapi, coreschema, uritemplate
 </s> add  </s> remove from collections import Counter, OrderedDict
 </s> add  </s> remove from rest_framework.compat import (
    URLPattern, URLResolver, coreapi, coreschema, get_original_route
)
 </s> add from rest_framework.compat import URLPattern, URLResolver, get_original_route
  inspectors.py   # Per-endpoint view introspection
  
  See schemas.__init__.py for package overview.
  """




  from weakref import WeakKeyDictionary
  
  from django.db import models
  from django.utils.encoding import force_text, smart_text
  from django.utils.translation import gettext_lazy as _
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Added OpenAPI Schema Generation. (#6532)

Co-authored-by: Lucidiot <lucidiot@protonmail.com>
Co-authored-by: dongfangtianyu <dongfangtianyu@qq.com> 
rest_framework/schemas/inspectors.py