-
Notifications
You must be signed in to change notification settings - Fork 150
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 deprecation warning for 3.5 and lower #783
base: master
Are you sure you want to change the base?
Conversation
The messages might need adjustment, but the test is working.
I really hate black sometimes
src/gino/__init__.py
Outdated
.. versionchanged:: 1.1 | ||
Added the ``prebake`` keyword argument to choose when to create the prepared | ||
statements for the queries in the bakery: | ||
|
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.
I think this new line was to keep the markdown docs structure, the same for line 28.
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.
They had been removed by the formatter in my IDE. Has been fixed
@@ -14,10 +16,8 @@ | |||
def create_engine(*args, **kwargs): | |||
""" | |||
Shortcut for :func:`sqlalchemy.create_engine` with ``strategy="gino"``. | |||
|
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.
could you add these two lines back too?
@@ -45,6 +45,15 @@ def get_version(): | |||
return version("gino") | |||
|
|||
|
|||
# Check if current python version is deprecated | |||
# Check if version is lower than 3.6 |
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.
nitpick: this is quite obvious by the statement itself
I'll change the code as requested later. |
The messages might need adjustment, but the test is working. This PR is intended to resolve #731.