@@ -95,24 +95,16 @@ def warn_deprecated(
95
95
specifier `%(func)s` may be used for the name of the function,
96
96
and `%(alternative)s` may be used in the deprecation message
97
97
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
99
99
for the type of object being deprecated.
100
100
101
101
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.
111
103
112
104
alternative : str, optional
113
105
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.
116
108
117
109
pending : bool, optional
118
110
If True, uses a PendingDeprecationWarning instead of a
@@ -153,7 +145,7 @@ def deprecated(since, message='', name='', alternative='', pending=False,
153
145
specifier `%(func)s` may be used for the name of the function,
154
146
and `%(alternative)s` may be used in the deprecation message
155
147
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
157
149
for the type of object being deprecated.
158
150
159
151
name : str, optional
@@ -169,8 +161,8 @@ def new_function():
169
161
170
162
alternative : str, optional
171
163
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.
174
166
175
167
pending : bool, optional
176
168
If True, uses a PendingDeprecationWarning instead of a
0 commit comments