mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Fixing flake8 E111, E114, E116, E203, E225, E262 errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user