Details
-
Type:
RFC
-
Status: Implemented
-
Resolution: Done
-
Component/s: DM
-
Labels:None
Description
The current deprecation procedure for Python suggests that the version in which the interface will disappear be stated in the text: "Will be removed after v15." In addition, I propose that the next major version to be released after the deprecation is merged be stated in a version parameter: version="14.0.0". This results in text saying "Deprecated since version 14.0.0." in the deprecation warning as well as appropriate text and highlighting in the Sphinx-generated documentation (DM-20704). Note that the version here should be, according to our deprecation process, either one prior to the "removed after" version in the normal case or the same as the "removed after" version, if a release was anticipated before the next major release, but in any case it is determinable by the code author at the time of writing the deprecation.
Similarly, for pybind11 a version parameter will be added to lsst.utils.deprecated.deprecate_pybind11.
Properly making use of the version parameter seems like a big win to me, especially if it improves the documentation.