Fixing flake8 W errors

This commit is contained in:
Lukasz Langa
2016-12-19 21:52:56 -08:00
parent d2c0f83a72
commit b84f20a011
37 changed files with 35 additions and 72 deletions

View File

@@ -54,4 +54,3 @@ class Task(Future[_T], Generic[_T]):
def cancel(self) -> bool: ...
def _step(self, value: Any = ..., exc: Exception = ...) -> None: ...
def _wakeup(self, future: Future[Any]) -> None: ...

View File

@@ -93,9 +93,9 @@ class Path(PurePath):
if sys.version_info >= (3, 5):
@classmethod
def home(cls: Type[_P]) -> _P: ...
def __new__(cls: Type[_P], *args: Union[str, PurePath],
def __new__(cls: Type[_P], *args: Union[str, PurePath],
**kwargs: Any) -> _P: ...
def absolute(self: _P) -> _P: ...
def expanduser(self: _P) -> _P: ...
def read_bytes(self) -> bytes: ...
@@ -105,7 +105,7 @@ class Path(PurePath):
def write_bytes(self, data: bytes) -> int: ...
def write_text(self, data: str, encoding: Optional[str] = ...,
errors: Optional[str] = ...) -> int: ...
class PosixPath(Path, PurePosixPath): ...
class WindowsPath(Path, PureWindowsPath): ...