From: Mike Bayer Date: Mon, 13 Sep 2021 18:58:06 +0000 (-0400) Subject: use in-package imports X-Git-Tag: rel_1_7_2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=205df1fe34e47029aed54a2d60967a8bdd224a36;p=thirdparty%2Fsqlalchemy%2Falembic.git use in-package imports Fixed an import in one of the .pyi files that was triggering an assertion error in some versions of mypy. Change-Id: Ifc663a876ebe5bebf8411c1eb451f2a25fe4dec0 Fixes: #897 --- diff --git a/alembic/context.pyi b/alembic/context.pyi index d789a224..c70f5fcc 100644 --- a/alembic/context.pyi +++ b/alembic/context.pyi @@ -13,8 +13,8 @@ if TYPE_CHECKING: from sqlalchemy.engine.base import Connection from sqlalchemy.sql.schema import MetaData - from .migration import MigrationContext from .runtime.migration import _ProxyTransaction + from .runtime.migration import MigrationContext ### end imports ### diff --git a/docs/build/unreleased/897.rst b/docs/build/unreleased/897.rst new file mode 100644 index 00000000..9ae0492d --- /dev/null +++ b/docs/build/unreleased/897.rst @@ -0,0 +1,6 @@ +.. change:: + :tags: bug, mypy + :tickets: 897 + + Fixed an import in one of the .pyi files that was triggering an + assertion error in some versions of mypy.