From eb5f37a7d19d74c88eed25d4b90f98bec1afa4be Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 26 May 2017 16:14:20 +0200 Subject: fix mypy annotations --- pathod/language/http2.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pathod/language/http2.py') diff --git a/pathod/language/http2.py b/pathod/language/http2.py index 47d6e370..dc842e59 100644 --- a/pathod/language/http2.py +++ b/pathod/language/http2.py @@ -1,9 +1,9 @@ import pyparsing as pp + from mitmproxy.net import http from mitmproxy.net.http import user_agents, Headers from . import base, message - """ Normal HTTP requests: ::
: @@ -41,7 +41,9 @@ def get_header(val, headers): class _HeaderMixin: - unique_name = None # type: ignore + @property + def unique_name(self): + return None def values(self, settings): return ( @@ -146,7 +148,7 @@ class Times(base.Integer): class Response(_HTTP2Message): - unique_name = None # type: ignore + unique_name = None comps = ( Header, Body, -- cgit v1.2.3 From e7990e0983344179e49a46f160e1482a0a0f6aa7 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 26 May 2017 16:22:13 +0200 Subject: fix recursive import --- pathod/language/http2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pathod/language/http2.py') diff --git a/pathod/language/http2.py b/pathod/language/http2.py index dc842e59..5b27d5bf 100644 --- a/pathod/language/http2.py +++ b/pathod/language/http2.py @@ -205,7 +205,7 @@ class Response(_HTTP2Message): return ":".join([i.spec() for i in self.tokens]) -class NestedResponse(base.NestedMessage): +class NestedResponse(message.NestedMessage): preamble = "s" nest_type = Response -- cgit v1.2.3