diff --git a/stubs/vobject/vobject/base.pyi b/stubs/vobject/vobject/base.pyi index 213b3d2d6..98407fc43 100644 --- a/stubs/vobject/vobject/base.pyi +++ b/stubs/vobject/vobject/base.pyi @@ -1,6 +1,6 @@ from _typeshed import SupportsWrite from collections.abc import Iterable -from typing import Any, TypeVar, overload +from typing import Any, Iterator, TypeVar, overload from typing_extensions import Literal DEBUG: bool @@ -143,7 +143,7 @@ class Stack: def readComponents( streamOrString, validate: bool = ..., transform: bool = ..., ignoreUnreadable: bool = ..., allowQP: bool = ... -) -> None: ... +) -> Iterator[Component]: ... def readOne(stream, validate: bool = ..., transform: bool = ..., ignoreUnreadable: bool = ..., allowQP: bool = ...): ... def registerBehavior(behavior, name: Any | None = ..., default: bool = ..., id: Any | None = ...) -> None: ... def getBehavior(name, id: Any | None = ...): ...