apply black and isort (#4287)

* apply black and isort

* move some type ignores
This commit is contained in:
Jelle Zijlstra
2020-06-28 13:31:00 -07:00
committed by GitHub
parent fe58699ca5
commit 5d553c9584
800 changed files with 13875 additions and 10332 deletions

View File

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