diff options
author | jason3gb <jason3gb@gmail.com> | 2021-05-25 15:40:48 -0400 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-05-25 22:56:24 +0200 |
commit | 4460d21e1331bdc8593c6d09a238885badd021f9 (patch) | |
tree | 2de8c70bedc899ccd0485d0f56c93837d954d735 /lib/sqlalchemy/testing/warnings.py | |
parent | 0816144afcf48c00ded19900b7fd94c3ce459811 (diff) | |
download | sqlalchemy-4460d21e1331bdc8593c6d09a238885badd021f9.tar.gz |
Removed automap deprecation warning
Fixed a deprecation warning that was emitted when using
:func:`_automap.automap_base` without passing an existing
``Base``.
Fixes: #6529
<!-- Provide a general summary of your proposed changes in the Title field above -->
### Description
Fixed the automap's declarative import from sqlalchemy.orm instead from the deprecated ext.declarative package
### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)
-->
This pull request is:
- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [x] A short code fix
- please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests. one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.
**Have a nice day!**
Closes: #6533
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6533
Pull-request-sha: 46d40005eae51fd7423da66f6ad4072f65744c1c
Change-Id: I432df70d4221873ca229076d5d3ac20b2870c13b
Diffstat (limited to 'lib/sqlalchemy/testing/warnings.py')
0 files changed, 0 insertions, 0 deletions