Skip to content

Commit c5fe795

Browse files
authored
xmltodict: improve parse input types (#9018)
1 parent d3a87eb commit c5fe795

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stubs/xmltodict/xmltodict.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
from _typeshed import SupportsRead, SupportsWrite
1+
from _typeshed import ReadableBuffer, SupportsRead, SupportsWrite
22
from collections import OrderedDict
33
from collections.abc import Mapping
4+
from types import GeneratorType
45
from typing import Any, overload
56

67
__license__: str
78

89
class ParsingInterrupted(Exception): ...
910

1011
def parse(
11-
xml_input: str | bytes | SupportsRead[bytes],
12+
xml_input: str | ReadableBuffer | SupportsRead[bytes] | GeneratorType[ReadableBuffer, Any, Any],
1213
encoding: str | None = ...,
1314
expat: Any = ...,
1415
process_namespaces: bool = ...,

0 commit comments

Comments
 (0)