From c98a8f0fa6729453b65de9571af1f87f55ab3253 Mon Sep 17 00:00:00 2001
From: David Cain <davidjosephcain@gmail.com>
Date: Wed, 21 Sep 2022 10:51:52 -0700
Subject: [PATCH] Use correct class to indicate present deprecation

`PendingDeprecationWarning` means "we plan to deprecate, but haven't
yet." A feature that's to be deleted in the next release is not planned
to be deprecated; it **is** deprecated.

> Base class for warnings about features which are obsolete and expected
> to be deprecated in the future, but are not deprecated at the moment.
>
> This class is rarely used as emitting a warning about a possible
> upcoming deprecation is unusual, and DeprecationWarning is preferred for
> already active deprecations.

https://docs.python.org/3/library/exceptions.html#PendingDeprecationWarning
---
 rest_framework/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest_framework/__init__.py b/rest_framework/__init__.py
index 568e080744..a9be0e7b96 100644
--- a/rest_framework/__init__.py
+++ b/rest_framework/__init__.py
@@ -37,5 +37,5 @@ class RemovedInDRF314Warning(PendingDeprecationWarning):
     pass
 
 
-class RemovedInDRF315Warning(PendingDeprecationWarning):
+class RemovedInDRF315Warning(DeprecationWarning):
     pass