diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-05-26 16:14:20 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-05-26 16:14:20 +0200 |
commit | eb5f37a7d19d74c88eed25d4b90f98bec1afa4be (patch) | |
tree | 9262e2549b8a3bd4cb2872041c8cc651d31c4d23 /pathod/language/http2.py | |
parent | 9f58b190320515835af5e7ba75bd3b1fdd9445e0 (diff) | |
download | mitmproxy-eb5f37a7d19d74c88eed25d4b90f98bec1afa4be.tar.gz mitmproxy-eb5f37a7d19d74c88eed25d4b90f98bec1afa4be.tar.bz2 mitmproxy-eb5f37a7d19d74c88eed25d4b90f98bec1afa4be.zip |
fix mypy annotations
Diffstat (limited to 'pathod/language/http2.py')
-rw-r--r-- | pathod/language/http2.py | 8 |
1 files changed, 5 insertions, 3 deletions
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: <method>:<path>:<header>:<body> @@ -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, |