Skip to content

Commit

Permalink
fix: Correct the AutogenContext.metadata typing to include Sequence[M…
Browse files Browse the repository at this point in the history
…etadata].
  • Loading branch information
DanCardin committed Sep 27, 2024
1 parent 9cc68f5 commit 1bdfa18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alembic/autogenerate/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class AutogenContext:
"""Maintains configuration and state that's specific to an
autogenerate operation."""

metadata: Optional[MetaData] = None
metadata: Union[MetaData, Sequence[MetaData], None] = None
"""The :class:`~sqlalchemy.schema.MetaData` object
representing the destination.
Expand Down Expand Up @@ -332,7 +332,7 @@ class AutogenContext:
def __init__(
self,
migration_context: MigrationContext,
metadata: Optional[MetaData] = None,
metadata: Union[MetaData, Sequence[MetaData], None] = None,
opts: Optional[Dict[str, Any]] = None,
autogenerate: bool = True,
) -> None:
Expand Down

0 comments on commit 1bdfa18

Please sign in to comment.