mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-22 17:48:30 +08:00
Fixing flake8 E265 errors
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
from typing import Any
|
||||
from . import packages
|
||||
#from .packages import six
|
||||
# from .packages import six
|
||||
from . import fields
|
||||
|
||||
#six = packages.six
|
||||
#b = six.b
|
||||
# six = packages.six
|
||||
# b = six.b
|
||||
RequestField = fields.RequestField
|
||||
|
||||
writer = ... # type: Any
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import Any, IO
|
||||
import io
|
||||
from . import _collections
|
||||
from . import exceptions
|
||||
#from .packages import six
|
||||
# from .packages import six
|
||||
from . import connection
|
||||
from .util import response
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
#from ..packages import six
|
||||
# from ..packages import six
|
||||
|
||||
#b = six.b
|
||||
# b = six.b
|
||||
|
||||
ACCEPT_ENCODING = ... # type: Any
|
||||
|
||||
|
||||
6
third_party/2/six/__init__.pyi
vendored
6
third_party/2/six/__init__.pyi
vendored
@@ -29,8 +29,8 @@ binary_type = str
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
|
||||
#def add_move
|
||||
#def remove_move
|
||||
# def add_move
|
||||
# def remove_move
|
||||
|
||||
def advance_iterator(it: typing.Iterator[_T]) -> _T: ...
|
||||
next = advance_iterator
|
||||
@@ -54,7 +54,7 @@ def get_function_globals(fun: types.FunctionType) -> Dict[str, Any]: ...
|
||||
def iterkeys(d: Mapping[_K, _V]) -> typing.Iterator[_K]: ...
|
||||
def itervalues(d: Mapping[_K, _V]) -> typing.Iterator[_V]: ...
|
||||
def iteritems(d: Mapping[_K, _V]) -> typing.Iterator[Tuple[_K, _V]]: ...
|
||||
#def iterlists
|
||||
# def iterlists
|
||||
|
||||
def viewkeys(d: Mapping[_K, _V]) -> KeysView[_K]: ...
|
||||
def viewvalues(d: Mapping[_K, _V]) -> ValuesView[_V]: ...
|
||||
|
||||
12
third_party/2/yaml/__init__.pyi
vendored
12
third_party/2/yaml/__init__.pyi
vendored
@@ -3,12 +3,12 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
#from yaml.error import *
|
||||
#from yaml.tokens import *
|
||||
#from yaml.events import *
|
||||
#from yaml.nodes import *
|
||||
#from yaml.loader import *
|
||||
#from yaml.dumper import *
|
||||
# from yaml.error import *
|
||||
# from yaml.tokens import *
|
||||
# from yaml.events import *
|
||||
# from yaml.nodes import *
|
||||
# from yaml.loader import *
|
||||
# from yaml.dumper import *
|
||||
# TODO: stubs for cyaml?
|
||||
# from cyaml import *
|
||||
|
||||
|
||||
4
third_party/3/requests/cookies.pyi
vendored
4
third_party/3/requests/cookies.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
# Stubs for requests.cookies (Python 3)
|
||||
|
||||
from typing import Any, MutableMapping
|
||||
#import cookielib
|
||||
# import cookielib
|
||||
from http import cookiejar as cookielib
|
||||
import collections
|
||||
from . import compat
|
||||
|
||||
#cookielib = compat.cookielib
|
||||
# cookielib = compat.cookielib
|
||||
|
||||
class MockRequest:
|
||||
type = ... # type: Any
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
from typing import Any
|
||||
from . import packages
|
||||
#from .packages import six
|
||||
# from .packages import six
|
||||
from . import fields
|
||||
|
||||
#six = packages.six
|
||||
#b = six.b
|
||||
# six = packages.six
|
||||
# b = six.b
|
||||
RequestField = fields.RequestField
|
||||
|
||||
writer = ... # type: Any
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import Any
|
||||
import io
|
||||
from . import _collections
|
||||
from . import exceptions
|
||||
#from .packages import six
|
||||
# from .packages import six
|
||||
from .connection import HTTPException as HTTPException, BaseSSLError as BaseSSLError
|
||||
from .util import response
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
#from ..packages import six
|
||||
# from ..packages import six
|
||||
|
||||
#b = six.b
|
||||
# b = six.b
|
||||
|
||||
ACCEPT_ENCODING = ... # type: Any
|
||||
|
||||
|
||||
6
third_party/3/six/__init__.pyi
vendored
6
third_party/3/six/__init__.pyi
vendored
@@ -42,8 +42,8 @@ binary_type = bytes
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
|
||||
#def add_move
|
||||
#def remove_move
|
||||
# def add_move
|
||||
# def remove_move
|
||||
|
||||
from builtins import next as advance_iterator
|
||||
next = advance_iterator
|
||||
@@ -66,7 +66,7 @@ def get_function_globals(fun: types.FunctionType) -> Dict[str, Any]: ...
|
||||
def iterkeys(d: Mapping[_K, _V]) -> typing.Iterator[_K]: ...
|
||||
def itervalues(d: Mapping[_K, _V]) -> typing.Iterator[_V]: ...
|
||||
def iteritems(d: Mapping[_K, _V]) -> typing.Iterator[Tuple[_K, _V]]: ...
|
||||
#def iterlists
|
||||
# def iterlists
|
||||
|
||||
def viewkeys(d: Mapping[_K, _V]) -> KeysView[_K]: ...
|
||||
def viewvalues(d: Mapping[_K, _V]) -> ValuesView[_V]: ...
|
||||
|
||||
Reference in New Issue
Block a user