mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 00:58:28 +08:00
Fixing flake8 E261 errors
This commit is contained in:
18
third_party/3/dateutil/relativedelta.pyi
vendored
18
third_party/3/dateutil/relativedelta.pyi
vendored
@@ -13,16 +13,16 @@ class weekday(object):
|
||||
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
weekday = ... # type: int
|
||||
n = ... # type: int
|
||||
weekday = ... # type: int
|
||||
n = ... # type: int
|
||||
|
||||
MO = ... # type: weekday
|
||||
TU = ... # type: weekday
|
||||
WE = ... # type: weekday
|
||||
TH = ... # type: weekday
|
||||
FR = ... # type: weekday
|
||||
SA = ... # type: weekday
|
||||
SU = ... # type: weekday
|
||||
MO = ... # type: weekday
|
||||
TU = ... # type: weekday
|
||||
WE = ... # type: weekday
|
||||
TH = ... # type: weekday
|
||||
FR = ... # type: weekday
|
||||
SA = ... # type: weekday
|
||||
SU = ... # type: weekday
|
||||
|
||||
|
||||
class relativedelta(object):
|
||||
|
||||
2
third_party/3/lxml/etree.pyi
vendored
2
third_party/3/lxml/etree.pyi
vendored
@@ -26,7 +26,7 @@ class _Element(Iterable['_Element']):
|
||||
pass
|
||||
|
||||
attrib = ... # type: MutableMapping[str, str]
|
||||
text = ... # type: AnyStr
|
||||
text = ... # type: AnyStr
|
||||
tag = ... # type: str
|
||||
def append(self, element: '_Element') -> '_Element': ...
|
||||
def __iter__(self) -> ElementChildIterator: ...
|
||||
|
||||
@@ -14,8 +14,8 @@ HTTPHeaderDict = _collections.HTTPHeaderDict
|
||||
ProtocolError = exceptions.ProtocolError
|
||||
DecodeError = exceptions.DecodeError
|
||||
ReadTimeoutError = exceptions.ReadTimeoutError
|
||||
binary_type = bytes # six.binary_type
|
||||
PY3 = True # six.PY3
|
||||
binary_type = bytes # six.binary_type
|
||||
PY3 = True # six.PY3
|
||||
is_fp_closed = response.is_fp_closed
|
||||
|
||||
class DeflateDecoder:
|
||||
|
||||
30
third_party/3/requests/sessions.pyi
vendored
30
third_party/3/requests/sessions.pyi
vendored
@@ -44,7 +44,7 @@ get_auth_from_url = utils.get_auth_from_url
|
||||
codes = status_codes.codes
|
||||
REDIRECT_STATI = models.REDIRECT_STATI
|
||||
|
||||
REDIRECT_CACHE_SIZE = ... # type: Any
|
||||
REDIRECT_CACHE_SIZE = ... # type: Any
|
||||
|
||||
def merge_setting(request_setting, session_setting, dict_class=...): ...
|
||||
def merge_hooks(request_hooks, session_hooks, dict_class=...): ...
|
||||
@@ -56,20 +56,20 @@ class SessionRedirectMixin:
|
||||
def rebuild_proxies(self, prepared_request, proxies): ...
|
||||
|
||||
class Session(SessionRedirectMixin):
|
||||
__attrs__ = ... # type: Any
|
||||
headers = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]]
|
||||
proxies = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]]
|
||||
params = ... # type: Union[None, bytes, MutableMapping[Text, Text]]
|
||||
stream = ... # type: bool
|
||||
verify = ... # type: bool
|
||||
cert = ... # type: Union[None, Text, Tuple[Text, Text]]
|
||||
max_redirects = ... # type: int
|
||||
trust_env = ... # type: bool
|
||||
cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]]
|
||||
adapters = ... # type: MutableMapping
|
||||
redirect_cache = ... # type: RecentlyUsedContainer
|
||||
__attrs__ = ... # type: Any
|
||||
headers = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]]
|
||||
proxies = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]]
|
||||
params = ... # type: Union[None, bytes, MutableMapping[Text, Text]]
|
||||
stream = ... # type: bool
|
||||
verify = ... # type: bool
|
||||
cert = ... # type: Union[None, Text, Tuple[Text, Text]]
|
||||
max_redirects = ... # type: int
|
||||
trust_env = ... # type: bool
|
||||
cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]]
|
||||
adapters = ... # type: MutableMapping
|
||||
redirect_cache = ... # type: RecentlyUsedContainer
|
||||
def __init__(self) -> None: ...
|
||||
def __enter__(self) -> 'Session': ...
|
||||
def __exit__(self, *args) -> None: ...
|
||||
|
||||
2
third_party/3/six/__init__.pyi
vendored
2
third_party/3/six/__init__.pyi
vendored
@@ -40,7 +40,7 @@ class_types = type,
|
||||
text_type = str
|
||||
binary_type = bytes
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
MAXSIZE = ... # type: int
|
||||
|
||||
#def add_move
|
||||
#def remove_move
|
||||
|
||||
6
third_party/3/typed_ast/ast27.pyi
vendored
6
third_party/3/typed_ast/ast27.pyi
vendored
@@ -19,15 +19,15 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...
|
||||
def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
|
||||
def walk(node: AST) -> Iterator[AST]: ...
|
||||
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
|
||||
# ast classes
|
||||
|
||||
identifier = str
|
||||
|
||||
class AST:
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class mod(AST):
|
||||
|
||||
6
third_party/3/typed_ast/ast35.pyi
vendored
6
third_party/3/typed_ast/ast35.pyi
vendored
@@ -19,15 +19,15 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...
|
||||
def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
|
||||
def walk(node: AST) -> Iterator[AST]: ...
|
||||
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
|
||||
# ast classes
|
||||
|
||||
identifier = str
|
||||
|
||||
class AST:
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class mod(AST):
|
||||
|
||||
2
third_party/3/werkzeug/__init__.pyi
vendored
2
third_party/3/werkzeug/__init__.pyi
vendored
@@ -26,7 +26,7 @@ class module(ModuleType):
|
||||
def __dir__(self): ...
|
||||
|
||||
|
||||
__version__ = ... # type: Any
|
||||
__version__ = ... # type: Any
|
||||
|
||||
run_simple = serving.run_simple
|
||||
test_app = testapp.test_app
|
||||
|
||||
Reference in New Issue
Block a user