]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
match process_revision_directives typing to API
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Oct 2023 23:18:20 +0000 (19:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Oct 2023 23:18:20 +0000 (19:18 -0400)
commit3e48ed0d4287fd89e96dce8ed1dd46b4c25bf53d
treeaa3a5869e4db9329be04e5ec0202209b0f38a8d3
parentb37d3d0ad7b0ed949fa895c5051e9d144f86698f
match process_revision_directives typing to API

Improved typing in the
:paramref:`.EnvironmentContext.configure.process_revision_directives`
callable to better indicate that the passed-in type is
:class:`.MigrationScript`, not the :class:`.MigrationOperation` base class,
and added typing to the example at :ref:`cookbook_no_empty_migrations` to
illustrate.

Change-Id: Ibfb7a57a081818c290cf0964d12a72b85c2c1983
Fixes: #1325
alembic/autogenerate/api.py
alembic/context.pyi
alembic/operations/__init__.py
alembic/runtime/environment.py
docs/build/cookbook.rst
docs/build/unreleased/1325.rst [new file with mode: 0644]