Fixing flake8 E111, E114, E116, E203, E225, E262 errors

This commit is contained in:
Lukasz Langa
2016-12-20 01:39:18 -08:00
parent 6e2709906b
commit 68a49c2c2e
12 changed files with 18 additions and 43 deletions

View File

@@ -3,10 +3,10 @@ from typing import Any, Callable, Generic, Optional, TypeVar
_T = TypeVar('_T')
class CallableProxyType(object): # "weakcallableproxy"
pass
pass
class ProxyType(object): # "weakproxy"
pass
pass
class ReferenceType(Generic[_T]):
# TODO rest of members

View File

@@ -19,7 +19,7 @@ class Random(_random.Random):
def seed(self, x: object = ...) -> None: ...
def getstate(self) -> _random._State: ...
def setstate(self, state: _random._State) -> None: ...
def jumpahead(self, n : int) -> None: ...
def jumpahead(self, n: int) -> None: ...
def getrandbits(self, k: int) -> int: ...
@overload
def randrange(self, stop: int) -> int: ...
@@ -51,7 +51,7 @@ class SystemRandom(Random):
def seed(x: object = ...) -> None: ...
def getstate() -> object: ...
def setstate(state: object) -> None: ...
def jumpahead(n : int) -> None: ...
def jumpahead(n: int) -> None: ...
def getrandbits(k: int) -> int: ...
@overload
def randrange(stop: int) -> int: ...

View File

@@ -30,7 +30,7 @@ class Request(object):
def get_type(self): ...
def get_host(self) -> str: ...
def get_selector(self): ...
def set_proxy(self, host, type)-> None: ...
def set_proxy(self, host, type) -> None: ...
def has_proxy(self) -> bool: ...
def get_origin_req_host(self) -> str: ...
def is_unverifiable(self) -> bool: ...
@@ -156,5 +156,5 @@ class CacheFTPHandler(FTPHandler):
def check_cache(self): ...
def clear_cache(self): ...
def parse_http_list(s: AnyStr) -> List[AnyStr] : ...
def parse_http_list(s: AnyStr) -> List[AnyStr]: ...
def parse_keqv_list(l: List[AnyStr]) -> Dict[AnyStr, AnyStr]: ...