Fixing flake8 W errors

This commit is contained in:
Lukasz Langa
2016-12-19 21:52:56 -08:00
parent d2c0f83a72
commit b84f20a011
37 changed files with 35 additions and 72 deletions

View File

@@ -22,7 +22,7 @@ Instruction = NamedTuple("Instruction", [
])
# if sys.version_info >= (3, 4):
# if sys.version_info >= (3, 4):
class Bytecode:
codeobj = ... # type: types.CodeType
first_line = ... # type: int
@@ -36,7 +36,7 @@ class Bytecode:
@classmethod
def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ...
COMPILER_FLAG_NAMES = ... # type: Dict[int, str]
@@ -50,7 +50,7 @@ def findlinestarts(code: _have_code) -> Iterator[Tuple[int, int]]: ...
# if sys.version_info >= (3, 2):
def code_info(x: _have_code_or_string) -> str: ...
# `file` parameter requires sys.version_info >= (3, 4):
def dis(x: _have_code_or_string = ..., *, file = ...) -> None: ...
def distb(tb: types.TracebackType = ..., *, file: IO[str] = ...) -> None: ...