Fix return type of readComponents() (#6143)

This commit is contained in:
Jochen Sprickerhof
2021-10-11 09:23:36 +02:00
committed by GitHub
parent 46fc031ee7
commit 76b1f63ac2

View File

@@ -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 = ...): ...