Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec486d7

Browse files
committed
Correct use of obj_type argument in cbook.warn_deprecated
1 parent 20ca818 commit ec486d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def new_function():
117117
The object type being deprecated.
118118
"""
119119
message = _generate_deprecation_message(
120-
since, message, name, alternative, pending, 'function')
120+
since, message, name, alternative, pending, obj_type)
121121

122122
warnings.warn(message, mplDeprecation, stacklevel=1)
123123

0 commit comments

Comments
 (0)