-
Notifications
You must be signed in to change notification settings - Fork 597
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
add a deprecated notice to 'SqlReader' for users #263
Conversation
Oh wow, the Deprecated library is strange. Anyways, it seems like we forgot to include |
# TODO remove in later releases? | ||
SqlReader = SqliteReader | ||
# SqliteReader is the newer name | ||
SqliteReader = SqlReader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't the SqliteReader
also be marked as deprecated with this approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes yes, it all doesn't work like I intended. But de we really need this deprecation at all? We already broke compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I didn't realize we'd already broken compatibility - in that case no we don't really need this deprecation warning. Lets just close this PR and remove the SqlReader/SqliteReader alias.
Yeah, I will do that. |
I changed the structure of
setup.py
a little bit and added the Deprecated library as a dependency, as suggested by Brian. Then I added the@deprecated
decorator to mark SqlReader as - you guessed it - deprecated.