From dc1d5b68e7294293ddfe64d2cdcdbcbfaeb8458d Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Sat, 30 Nov 2019 19:53:13 -0800 Subject: [PATCH] update mypy to 0.750 (#204) --- requirements-testing.txt | 2 +- tests/http/test_http_parser.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requirements-testing.txt b/requirements-testing.txt index 640af313..f6bd2cd7 100644 --- a/requirements-testing.txt +++ b/requirements-testing.txt @@ -4,6 +4,6 @@ flake8==3.7.9 pytest==5.3.1 pytest-cov==2.8.1 autopep8==1.4.4 -mypy==0.740 +mypy==0.750 py-spy==0.3.0 codecov==2.0.15 diff --git a/tests/http/test_http_parser.py b/tests/http/test_http_parser.py index d99e8328..623af08d 100644 --- a/tests/http/test_http_parser.py +++ b/tests/http/test_http_parser.py @@ -9,7 +9,6 @@ :license: BSD, see LICENSE for more details. """ import unittest -from typing import Dict, Tuple from proxy.common.constants import CRLF from proxy.common.utils import build_http_request, find_http_line, build_http_response, build_http_header, bytes_ @@ -514,8 +513,3 @@ class TestHttpParser(unittest.TestCase): httpMethods.GET, b'/', protocol_version=b'HTTP/1.0', )) self.assertFalse(self.parser.is_http_1_1_keep_alive()) - - def assertDictContainsSubset(self, subset: Dict[bytes, Tuple[bytes, bytes]], - dictionary: Dict[bytes, Tuple[bytes, bytes]]) -> None: - for k in subset.keys(): - self.assertTrue(k in dictionary)