From 205df1fe34e47029aed54a2d60967a8bdd224a36 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 13 Sep 2021 14:58:06 -0400 Subject: [PATCH] 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 --- alembic/context.pyi | 2 +- docs/build/unreleased/897.rst | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/build/unreleased/897.rst 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. -- 2.47.2