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

Deprecation decorator only printing message, not version or alternative solution #7591

Open
hayesla opened this issue Apr 24, 2024 · 0 comments
Labels
Bug Probably a bug Effort Medium Requires a moderate time investment Infrastructure Issues or PRs that affect the CI or packaging of SunPy Package Novice Requires little knowledge of the internal structure of SunPy Priority Medium Non-urgent action required util Issues relating to sunpy.util

Comments

@hayesla
Copy link
Member

hayesla commented Apr 24, 2024

this does not work:

from sunpy.util.decorators import deprecated

@deprecated(since="3.1", message="We will be moving this", alternative="sunpy.net.Scraper")

seems to only print the message

@hayesla hayesla added the Bug Probably a bug label Apr 24, 2024
@nabobalis nabobalis added Package Novice Requires little knowledge of the internal structure of SunPy Priority Medium Non-urgent action required Effort Medium Requires a moderate time investment Infrastructure Issues or PRs that affect the CI or packaging of SunPy util Issues relating to sunpy.util labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Probably a bug Effort Medium Requires a moderate time investment Infrastructure Issues or PRs that affect the CI or packaging of SunPy Package Novice Requires little knowledge of the internal structure of SunPy Priority Medium Non-urgent action required util Issues relating to sunpy.util
Projects
None yet
Development

No branches or pull requests

2 participants