Update docstring

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2022-04-10 19:27:57 +03:00 committed by GitHub
parent 331595926c
commit c9acb9b387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ def deprecate(
Usually of the form: Usually of the form:
"[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd). "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
Use [new thing] instead." Use [replacement] instead."
You can leave out the replacement sentence: You can leave out the replacement sentence:
@ -35,7 +35,7 @@ def deprecate(
Or with another call to action: Or with another call to action:
"[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd). "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
[Upgrade to new thing]." [action]."
""" """
is_ = "are" if plural else "is" is_ = "are" if plural else "is"