]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
fix pep484 errors
authorAaron Griffin <aaron@growtherapy.com>
Thu, 24 Apr 2025 21:54:51 +0000 (16:54 -0500)
committerAaron Griffin <aaron@growtherapy.com>
Thu, 24 Apr 2025 21:54:51 +0000 (16:54 -0500)
alembic/ddl/mysql.py
alembic/ddl/sqlite.py

index 37afe4577686da383bb3bd874510c684f7a245fe..d92e3cd7d76be7d7df75e51a2a767ca141a94719 100644 (file)
@@ -167,6 +167,7 @@ class MySQLImpl(DefaultImpl):
     def drop_constraint(
         self,
         const: Constraint,
+        **kw: Any,
     ) -> None:
         if isinstance(const, schema.CheckConstraint) and _is_type_bound(const):
             return
index 7c6fb20c7a02e3358d45ec1335b550b05d2aa52f..5f141330fb8bb32d5c2c01996824ccaa2151a39a 100644 (file)
@@ -91,7 +91,7 @@ class SQLiteImpl(DefaultImpl):
                 "SQLite migrations using a copy-and-move strategy."
             )
 
-    def drop_constraint(self, const: Constraint):
+    def drop_constraint(self, const: Constraint, **kw: Any):
         if const._create_rule is None:
             raise NotImplementedError(
                 "No support for ALTER of constraints in SQLite dialect. "