Skip to content

Commit

Permalink
fixed required warning function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln-developer committed Nov 11, 2024
1 parent 0d8bd61 commit d077a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer-workflow/cpython-deprecation-workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Deprecation implementation

Once approved:

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

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

0 comments on commit d077a58

Please sign in to comment.