Skip to content

Commit

Permalink
Fixes: #1348 Typings for target_metadata sequence of metadatas
Browse files Browse the repository at this point in the history
  • Loading branch information
Iuri de Silvio committed Nov 8, 2023
1 parent 0e0131b commit 2f68033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion alembic/context.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: Optional[MetaData | Sequence[MetaData]] = None,
include_name: Optional[
Callable[
[
Expand Down
3 changes: 2 additions & 1 deletion alembic/runtime/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: Optional[MetaData | Sequence[MetaData]] = None,
include_name: Optional[IncludeNameFn] = None,
include_object: Optional[IncludeObjectFn] = None,
include_schemas: bool = False,
Expand Down

0 comments on commit 2f68033

Please sign in to comment.