From e24b4cc1b64455b8b9b5d1265103054bb8b3a8af Mon Sep 17 00:00:00 2001 From: harsh vijay Date: Tue, 2 May 2017 05:19:25 +0530 Subject: Extend Mypy checking to pathod * mypy checking pathod * initial commit , fixed errors * tox: mypy checking to pathod * Fixed mypy test failed * issue was with args in custom_contentview.py * tox: mypy checking to #2221 * follow-import=skip since we cant provide args to custom_contentview.py during mypy testing * Lint , Typo Fixed * code style: module import --- examples/simple/io_write_dumpfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/simple/io_write_dumpfile.py') diff --git a/examples/simple/io_write_dumpfile.py b/examples/simple/io_write_dumpfile.py index 7c4c6a7a..cf7c4f52 100644 --- a/examples/simple/io_write_dumpfile.py +++ b/examples/simple/io_write_dumpfile.py @@ -8,12 +8,13 @@ to multiple files in parallel. import random import sys from mitmproxy import io, http +import typing # noqa class Writer: def __init__(self, path: str) -> None: if path == "-": - f = sys.stdout # type: io.TextIO + f = sys.stdout # type: typing.IO[typing.Any] else: f = open(path, "wb") self.w = io.FlowWriter(f) -- cgit v1.2.3