"""
-def implementation_for(op_cls: Any) -> Callable[[_C], _C]:
+def implementation_for(
+ op_cls: Any, replace: bool = False
+) -> Callable[[_C], _C]:
"""Register an implementation for a given :class:`.MigrateOperation`.
+ :param replace: when True, allows replacement of an already
+ registered implementation for the given operation class. This
+ enables customization of built-in operations such as
+ :class:`.CreateTableOp` by providing an alternate implementation
+ that can augment, modify, or conditionally invoke the default
+ behavior.
+
+ .. versionadded:: 1.17.2
+
This is part of the operation extensibility API.
.. seealso::
- :ref:`operation_plugins` - example of use
+ :ref:`operation_plugins`
+
+ :ref:`operations_extending_builtin`
"""
tests = [
"pytest>8,<10",
"pytest-xdist",
- "black==25.1.0", # for test_post_write.py
+ "black==25.9.0", # for test_post_write.py
+ "zimports", # for stub testing
"tzdata",
"junitparser"
]