@@ -95,24 +95,16 @@ def warn_deprecated(
9595 specifier `%(func)s` may be used for the name of the function,
9696 and `%(alternative)s` may be used in the deprecation message
9797 to insert the name of an alternative to the deprecated
98- function. `%(obj_type)` may be used to insert a friendly name
98+ function. `%(obj_type)s ` may be used to insert a friendly name
9999 for the type of object being deprecated.
100100
101101 name : str, optional
102- The name of the deprecated function; if not provided the name
103- is automatically determined from the passed in function,
104- though this is useful in the case of renamed functions, where
105- the new function is just assigned to the name of the
106- deprecated function. For example::
107-
108- def new_function():
109- ...
110- oldFunction = new_function
102+ The name of the deprecated object.
111103
112104 alternative : str, optional
113105 An alternative function that the user may use in place of the
114- deprecated function. The deprecation warning will tell the user about
115- this alternative if provided.
106+ deprecated function. The deprecation warning will tell the user
107+ about this alternative if provided.
116108
117109 pending : bool, optional
118110 If True, uses a PendingDeprecationWarning instead of a
@@ -153,7 +145,7 @@ def deprecated(since, message='', name='', alternative='', pending=False,
153145 specifier `%(func)s` may be used for the name of the function,
154146 and `%(alternative)s` may be used in the deprecation message
155147 to insert the name of an alternative to the deprecated
156- function. `%(obj_type)` may be used to insert a friendly name
148+ function. `%(obj_type)s ` may be used to insert a friendly name
157149 for the type of object being deprecated.
158150
159151 name : str, optional
@@ -169,8 +161,8 @@ def new_function():
169161
170162 alternative : str, optional
171163 An alternative function that the user may use in place of the
172- deprecated function. The deprecation warning will tell the user about
173- this alternative if provided.
164+ deprecated function. The deprecation warning will tell the user
165+ about this alternative if provided.
174166
175167 pending : bool, optional
176168 If True, uses a PendingDeprecationWarning instead of a
0 commit comments