Skip to content

Commit 2de5081

Browse files
Use correct class to indicate present deprecation (#8665)
`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 Co-authored-by: Tom Christie <tom@tomchristie.com>
1 parent 2da473c commit 2de5081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
default_app_config = 'rest_framework.apps.RestFrameworkConfig'
3030

3131

32-
class RemovedInDRF315Warning(PendingDeprecationWarning):
32+
class RemovedInDRF315Warning(DeprecationWarning):
3333
pass

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy