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

Introduce a warn_deprecated helper #964

Closed
wants to merge 1 commit into from
Closed

Conversation

florimondmanca
Copy link
Member

@florimondmanca florimondmanca commented May 21, 2020

Description
Add a warn_deprecated() util meant to be used to notify users that they're following a deprecated code path.

Motivation
The DeprecationWarning category is necessary for Python to facilitate the filtering of these warnings, but it's easy to forget - see #963 (comment)

@florimondmanca florimondmanca added the refactor Issues and PRs related to code refactoring label May 21, 2020
@florimondmanca florimondmanca mentioned this pull request May 21, 2020
@yeraydiazdiaz
Copy link
Contributor

Awkward... d876de8 😅

@florimondmanca
Copy link
Member Author

florimondmanca commented May 21, 2020

Sure! I thought we might as well merge this and then rebase #963 on top of master - for the sake of separation… Either way works fine!

@florimondmanca florimondmanca deleted the warn-deprecated branch May 21, 2020 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues and PRs related to code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants