Skip to content

Commit 313f653

Browse files
committed
Add unobtrusive depreaction note to the first line of the docstring.
1 parent ac0525e commit 313f653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def wrapper(*args, **kwargs):
247247
old_doc = inspect.cleandoc(old_doc or '').strip('\n')
248248

249249
message = message.strip()
250-
new_doc = ('{old_doc}\n'
250+
new_doc = ('[*Deprecated*] {old_doc}\n'
251251
'\n'
252252
'.. deprecated:: {since}\n'
253253
' {message}'

0 commit comments

Comments
 (0)