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

POC: deprecation with strict removal version #28470

Closed
wants to merge 1 commit into from

Conversation

jbrockmendel
Copy link
Member

xref #28415

Decorator that just registers the deprecation in a dict that we can check and test-time.

def strict_deprecation(msg, deprecated_in, remove_in):
def deprecator(arg):
if isinstance(arg, str):
key = arg
Copy link
Member Author

Choose a reason for hiding this comment

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

this isnt really necessary, was for a non-decorator usage I had in mind, but that is problematic since it might not run at import-time.

@WillAyd
Copy link
Member

WillAyd commented Sep 17, 2019

Thinking out loud but is it possible to move some of this to scripts? Putting a code-maintenance task in the code base itself seems a little strange to me so scripts might be a better home

@jbrockmendel
Copy link
Member Author

Putting a code-maintenance task in the code base itself seems a little strange to me so scripts might be a better home

Agreed on the principle, no idea about the implementation. Maybe code_checks?

@jbrockmendel jbrockmendel deleted the deprcheck branch September 17, 2019 22:02
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.

2 participants