diff --git a/stdlib/graphlib.pyi b/stdlib/graphlib.pyi index f0ac72b6135e..0e77f031ad1c 100644 --- a/stdlib/graphlib.pyi +++ b/stdlib/graphlib.pyi @@ -1,6 +1,6 @@ import sys from _typeshed import SupportsItems -from collections.abc import Iterable +from collections.abc import Iterable, Iterator from typing import Any, Generic, TypeVar, overload __all__ = ["TopologicalSorter", "CycleError"] @@ -22,7 +22,7 @@ class TopologicalSorter(Generic[_T]): def __bool__(self) -> bool: ... def done(self, *nodes: _T) -> None: ... def get_ready(self) -> tuple[_T, ...]: ... - def static_order(self) -> Iterable[_T]: ... + def static_order(self) -> Iterator[_T]: ... if sys.version_info >= (3, 11): def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...