-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrej Shadura <[email protected]>
- Loading branch information
1 parent
9c50fe7
commit a5ddf0b
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version = "0.12.*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from _typeshed import SupportsRead, SupportsWrite | ||
from collections import OrderedDict | ||
from typing import Any, Mapping, overload | ||
|
||
class ParsingInterrupted(Exception): ... | ||
|
||
def parse( | ||
xml_input: str | bytes | SupportsRead[bytes], | ||
encoding: str | None = ..., | ||
expat: Any = ..., | ||
process_namespaces: bool = ..., | ||
namespace_separator: str = ..., | ||
disable_entities: bool = ..., | ||
**kwargs: Any, | ||
) -> OrderedDict[str, Any]: ... | ||
@overload | ||
def unparse( | ||
input_dict: Mapping[str, Any], | ||
output: SupportsWrite[bytes] | SupportsWrite[str], | ||
encoding: str = ..., | ||
full_document: bool = ..., | ||
short_empty_elements: bool = ..., | ||
**kwargs: Any, | ||
) -> None: ... | ||
@overload | ||
def unparse( | ||
input_dict: Mapping[str, Any], | ||
output: None = ..., | ||
encoding: str = ..., | ||
full_document: bool = ..., | ||
short_empty_elements: bool = ..., | ||
**kwargs: Any, | ||
) -> str: ... |