From 76b1f63ac253759f875949dd7f157fe049d05d95 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Mon, 11 Oct 2021 09:23:36 +0200 Subject: [PATCH] Fix return type of readComponents() (#6143) --- stubs/vobject/vobject/base.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = ...): ...