mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Fix return type of readComponents() (#6143)
This commit is contained in:
committed by
GitHub
parent
46fc031ee7
commit
76b1f63ac2
@@ -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 = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user