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,8 @@
import sys
from _typeshed import AnyPath
from typing import Any, Optional, Pattern
from _typeshed import AnyPath
if sys.version_info < (3, 6):
_SuccessType = bool
else:
@@ -43,6 +44,7 @@ if sys.version_info >= (3, 9):
limit_sl_dest: Optional[AnyPath] = ...,
hardlink_dupes: bool = ...,
) -> _SuccessType: ...
elif sys.version_info >= (3, 7):
def compile_dir(
dir: AnyPath,
@@ -100,6 +102,7 @@ if sys.version_info >= (3, 7):
optimize: int = ...,
invalidation_mode: Optional[PycInvalidationMode] = ...,
) -> _SuccessType: ...
else:
def compile_path(
skip_curdir: bool = ...,