mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from typing import List, Tuple, Optional, Callable, Any, Union, Dict, Text
|
||||
from _typeshed import SupportsRead
|
||||
|
||||
import pyexpat.errors as errors
|
||||
import pyexpat.model as model
|
||||
from typing import Any, Callable, Dict, List, Optional, Text, Tuple, Union
|
||||
|
||||
from _typeshed import SupportsRead
|
||||
|
||||
EXPAT_VERSION: str # undocumented
|
||||
version_info: Tuple[int, int, int] # undocumented
|
||||
@@ -49,10 +49,13 @@ class XMLParserType(object):
|
||||
EndDoctypeDeclHandler: Optional[Callable[[], Any]]
|
||||
ElementDeclHandler: Optional[Callable[[str, _Model], Any]]
|
||||
AttlistDeclHandler: Optional[Callable[[str, str, str, Optional[str], bool], Any]]
|
||||
StartElementHandler: Optional[Union[
|
||||
Callable[[str, Dict[str, str]], Any],
|
||||
Callable[[str, List[str]], Any],
|
||||
Callable[[str, Union[Dict[str, str]], List[str]], Any]]]
|
||||
StartElementHandler: Optional[
|
||||
Union[
|
||||
Callable[[str, Dict[str, str]], Any],
|
||||
Callable[[str, List[str]], Any],
|
||||
Callable[[str, Union[Dict[str, str]], List[str]], Any],
|
||||
]
|
||||
]
|
||||
EndElementHandler: Optional[Callable[[str], Any]]
|
||||
ProcessingInstructionHandler: Optional[Callable[[str, str], Any]]
|
||||
CharacterDataHandler: Optional[Callable[[str], Any]]
|
||||
@@ -70,5 +73,8 @@ class XMLParserType(object):
|
||||
ExternalEntityRefHandler: Optional[Callable[[str, Optional[str], Optional[str], Optional[str]], int]]
|
||||
|
||||
def ErrorString(__code: int) -> str: ...
|
||||
|
||||
# intern is undocumented
|
||||
def ParserCreate(encoding: Optional[Text] = ..., namespace_separator: Optional[Text] = ..., intern: Optional[Dict[str, Any]] = ...) -> XMLParserType: ...
|
||||
def ParserCreate(
|
||||
encoding: Optional[Text] = ..., namespace_separator: Optional[Text] = ..., intern: Optional[Dict[str, Any]] = ...
|
||||
) -> XMLParserType: ...
|
||||
|
||||
Reference in New Issue
Block a user