diff options
| -rw-r--r-- | doc/build/changelog/unreleased_14/6529.rst | 8 | ||||
| -rw-r--r-- | lib/sqlalchemy/ext/automap.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/build/changelog/unreleased_14/6529.rst b/doc/build/changelog/unreleased_14/6529.rst new file mode 100644 index 000000000..df650cb43 --- /dev/null +++ b/doc/build/changelog/unreleased_14/6529.rst @@ -0,0 +1,8 @@ +.. change:: + :tags: bug, ext + :tickets: 6529 + + Fixed a deprecation warning that was emitted when using + :func:`_automap.automap_base` without passing an existing + ``Base``. + diff --git a/lib/sqlalchemy/ext/automap.py b/lib/sqlalchemy/ext/automap.py index 3d2e3eb29..e20435911 100644 --- a/lib/sqlalchemy/ext/automap.py +++ b/lib/sqlalchemy/ext/automap.py @@ -560,9 +560,9 @@ be applied as:: """ # noqa -from .declarative import declarative_base as _declarative_base from .. import util from ..orm import backref +from ..orm import declarative_base as _declarative_base from ..orm import exc as orm_exc from ..orm import interfaces from ..orm import relationship |
