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 --- pathod/pathod.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pathod/pathod.py') diff --git a/pathod/pathod.py b/pathod/pathod.py index 7416d325..7c773c3b 100644 --- a/pathod/pathod.py +++ b/pathod/pathod.py @@ -3,19 +3,17 @@ import logging import os import sys import threading - from mitmproxy.net import tcp from mitmproxy import certs as mcerts from mitmproxy.net import websockets from mitmproxy import version - import urllib from mitmproxy import exceptions - from pathod import language from pathod import utils from pathod import log from pathod import protocols +import typing # noqa DEFAULT_CERT_DOMAIN = b"pathod.net" @@ -71,7 +69,7 @@ class SSLOptions: class PathodHandler(tcp.BaseHandler): wbufsize = 0 - sni = None + sni = None # type: typing.Union[str, None, bool] def __init__( self, -- cgit v1.2.3