Skip to content

Commit 13c9b71

Browse files
committed
ensure stub tests run on nox
Change-Id: I18fb652a475ed59ce92173da1bfa05be5de4b953
1 parent bfbf3f0 commit 13c9b71

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

alembic/op.pyi

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ alembic = "alembic.config:main"
5454
tests = [
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
]

0 commit comments

Comments
 (0)