  from rest_framework.reverse import reverse
  from rest_framework.test import APIRequestFactory
  
  factory = APIRequestFactory()
  
  
 
</s> remove from django.urls import include, path, re_path
 </s> add from django.urls import ResolverMatch, include, path, re_path </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove         class FakeResolverMatch:
 </s> add         class FakeResolverMatch(ResolverMatch): </s> remove class MockVersioningScheme:
 </s> add class MockVersioningScheme(BaseVersioning):
from rest_framework.versioning import BaseVersioning
  from rest_framework.reverse import reverse
  from rest_framework.test import APIRequestFactory
from rest_framework.versioning import BaseVersioning
  
  factory = APIRequestFactory()
  
  
keep add keep keep keep keep
 Inherit from faked classes in tests to satisfy mypy (#8859)

* tests: inherit FakeResolverMatcher from django.urls.ResolverMatcher in tests/test_versioning.py

* tests: inherit from rest_framework.versioning.BaseVersioning in tests/test_reverse.py

* fix: isort

---------

Co-authored-by: Piotr Szyma <pszyma@opera.com> 
tests/test_reverse.py