]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
fix(mysql): remove type ignore for MariaDB dialect check because of pep484 1710/head
authorLuís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com>
Sun, 17 Aug 2025 21:03:56 +0000 (18:03 -0300)
committerLuís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com>
Sun, 17 Aug 2025 21:03:56 +0000 (18:03 -0300)
alembic/ddl/mysql.py

index 8f5f9252663d967bfb29b5764dc63634f3f97a7e..3d7cf21a49a3b724ccf3eb2335c37b90556d70d1 100644 (file)
@@ -507,7 +507,7 @@ def _mysql_drop_constraint(
         # note that SQLAlchemy as of 1.2 does not yet support
         # DROP CONSTRAINT for MySQL/MariaDB, so we implement fully
         # here.
-        if compiler.dialect.is_mariadb:  # type: ignore[attr-defined]
+        if compiler.dialect.is_mariadb:
             return "ALTER TABLE %s DROP CONSTRAINT %s" % (
                 compiler.preparer.format_table(constraint.table),
                 compiler.preparer.format_constraint(constraint),