Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-20546: Add some formal deprecations #478

Merged
merged 5 commits into from Jul 24, 2019
Merged

DM-20546: Add some formal deprecations #478

merged 5 commits into from Jul 24, 2019

Conversation

timj
Copy link
Member

@timj timj commented Jul 23, 2019

In particular afw.geom forwarding to geom now warns.

# by deprecate_pybind11.
AffineTransform = deprecate_pybind11(AffineTransform,
reason="Replaced by lsst.geom.AffineTransform (will be removed before the release of v20.0)",
category=FutureWarning)
Copy link
Contributor

@ktlim ktlim Jul 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to specify this category, as it's the default. You can also leave out the reason=.

Copy link
Contributor

@ktlim ktlim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.

Only warns on classes and not constants.
@timj timj merged commit a83fda3 into master Jul 24, 2019
@timj timj deleted the tickets/DM-20546 branch July 24, 2019 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants