Skip to content

Commit d077a58

Browse files
fixed required warning function
1 parent 0d8bd61 commit d077a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

developer-workflow/cpython-deprecation-workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Deprecation implementation
2828

2929
Once approved:
3030

31-
* **Raise a Warning**: Use :func:`warnings.warn` with :exc:`DeprecationWarning` for typical cases.
31+
* **Raise a Warning**: Use ``warnings._deprecated`` with :exc:`DeprecationWarning` for typical cases.
3232
If the feature is in its early deprecation phase:
3333

3434
* Use :exc:`PendingDeprecationWarning` initially, which transitions to :exc:`DeprecationWarning` after a suitable period.

0 commit comments

Comments
 (0)