diff --git a/alembic/context.pyi b/alembic/context.pyi index f37f2461..aef17455 100644 --- a/alembic/context.pyi +++ b/alembic/context.pyi @@ -14,6 +14,7 @@ from typing import Mapping from typing import MutableMapping from typing import Optional from typing import overload +from typing import Sequence from typing import TextIO from typing import Tuple from typing import TYPE_CHECKING @@ -97,7 +98,7 @@ def configure( tag: Optional[str] = None, template_args: Optional[Dict[str, Any]] = None, render_as_batch: bool = False, - target_metadata: Optional[MetaData] = None, + target_metadata: Union[MetaData, Sequence[MetaData], None] = None, include_name: Optional[ Callable[ [ diff --git a/alembic/runtime/environment.py b/alembic/runtime/environment.py index 7640f563..74672d7a 100644 --- a/alembic/runtime/environment.py +++ b/alembic/runtime/environment.py @@ -10,6 +10,7 @@ from typing import MutableMapping from typing import Optional from typing import overload +from typing import Sequence from typing import TextIO from typing import Tuple from typing import TYPE_CHECKING @@ -416,7 +417,7 @@ def configure( tag: Optional[str] = None, template_args: Optional[Dict[str, Any]] = None, render_as_batch: bool = False, - target_metadata: Optional[MetaData] = None, + target_metadata: Union[MetaData, Sequence[MetaData], None] = None, include_name: Optional[IncludeNameFn] = None, include_object: Optional[IncludeObjectFn] = None, include_schemas: bool = False,