File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -239,3 +239,20 @@ What's new notes
239
239
.. include :: ../users/next_whats_new/README.rst
240
240
:start-after: whats-new-guide-start
241
241
:end-before: whats-new-guide-end
242
+
243
+ Discourage API
244
+ --------------
245
+
246
+ We have API that we do not recommend anymore for new code, but that cannot be
247
+ deprecated because its removal would be breaking backward-compatibility and too
248
+ disruptive. In such a case we can formally discourage API. This can cover
249
+ specific parameters, call patterns, whole methods etc.
250
+
251
+ To do so, add a note to the docstring ::
252
+
253
+ .. admonition:: Discouraged
254
+
255
+ [description and suggested alternative]
256
+
257
+ You find several examples for good descriptions if you search the codebase for
258
+ ``.. admonition:: Discouraged ``.
You can’t perform that action at this time.
0 commit comments