]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
use in-package imports
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Sep 2021 18:58:06 +0000 (14:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Sep 2021 16:48:09 +0000 (12:48 -0400)
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
docs/build/unreleased/897.rst [new file with mode: 0644]

index d789a22447cd5e886d6cbef0682df620286061b9..c70f5fcc7c32989048823eea3e74cbbba93f7ea2 100644 (file)
@@ -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 (file)
index 0000000..9ae0492
--- /dev/null
@@ -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.