Fixing flake8 E265 errors

This commit is contained in:
Lukasz Langa
2016-12-20 00:16:44 -08:00
parent 5b6a9937b2
commit 147772950f
24 changed files with 70 additions and 71 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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]: ...

View File

@@ -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 *

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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]: ...