from typing import Deque
from typing import Dict
from typing import FrozenSet
+from typing import Iterable
from typing import Iterator
from typing import List
from typing import Optional
"""
- def __init__(self, generator: Callable[[], Iterator["Revision"]]) -> None:
+ def __init__(self, generator: Callable[[], Iterable["Revision"]]) -> None:
"""Construct a new :class:`.RevisionMap`.
:param generator: a zero-arg callable that will generate an iterable
def filter_for_lineage(
self,
- targets: Sequence[_T],
+ targets: Iterable[_T],
check_against: Optional[str],
include_dependencies: bool = False,
) -> Tuple[_T, ...]:
def _copy(schema_item: _CE, **kw) -> _CE:
if hasattr(schema_item, "_copy"):
- return schema_item._copy(**kw)
+ return schema_item._copy(**kw) # type: ignore[union-attr]
else:
- return schema_item.copy(**kw)
+ return schema_item.copy(**kw) # type: ignore[union-attr]
def _get_connection_transaction(