File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1214,14 +1214,27 @@ def get_context() -> MigrationContext:
12141214
12151215 """
12161216
1217- def implementation_for (op_cls : Any ) -> Callable [[_C ], _C ]:
1217+ def implementation_for (
1218+ op_cls : Any , replace : bool = False
1219+ ) -> Callable [[_C ], _C ]:
12181220 """Register an implementation for a given :class:`.MigrateOperation`.
12191221
1222+ :param replace: when True, allows replacement of an already
1223+ registered implementation for the given operation class. This
1224+ enables customization of built-in operations such as
1225+ :class:`.CreateTableOp` by providing an alternate implementation
1226+ that can augment, modify, or conditionally invoke the default
1227+ behavior.
1228+
1229+ .. versionadded:: 1.17.2
1230+
12201231 This is part of the operation extensibility API.
12211232
12221233 .. seealso::
12231234
1224- :ref:`operation_plugins` - example of use
1235+ :ref:`operation_plugins`
1236+
1237+ :ref:`operations_extending_builtin`
12251238
12261239 """
12271240
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ alembic = "alembic.config:main"
5454tests = [
5555 " pytest>8,<10" ,
5656 " pytest-xdist" ,
57- " black==25.1.0" , # for test_post_write.py
57+ " black==25.9.0" , # for test_post_write.py
58+ " zimports" , # for stub testing
5859 " tzdata" ,
5960 " junitparser"
6061]
You can’t perform that action at this time.
0 commit comments