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,7 +1,22 @@
from typing import Any, Callable, Dict, Generator, Iterable, List, NamedTuple, Optional, Pattern, Union, Sequence, Set, TextIO, Tuple
from builtins import open as _builtin_open
import sys
from builtins import open as _builtin_open
from token import * # noqa: F403
from typing import (
Any,
Callable,
Dict,
Generator,
Iterable,
List,
NamedTuple,
Optional,
Pattern,
Sequence,
Set,
TextIO,
Tuple,
Union,
)
if sys.version_info < (3, 7):
COMMENT: int
@@ -50,6 +65,7 @@ def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, N
if sys.version_info >= (3, 6):
from os import PathLike
def open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...
elif sys.version_info >= (3, 2):
def open(filename: Union[str, bytes, int]) -> TextIO: ...