Skip to content

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