diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-05-09 00:34:19 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-05-11 10:15:28 +0200 |
commit | 8414df1e1ae132cfc8919efa337e599020298ac9 (patch) | |
tree | 47c20d522186d965b67294b8e12e2630e2ea5e80 | |
parent | cafa094f75732bd803972aecb71e2d1032ee2390 (diff) | |
download | mitmproxy-8414df1e1ae132cfc8919efa337e599020298ac9.tar.gz mitmproxy-8414df1e1ae132cfc8919efa337e599020298ac9.tar.bz2 mitmproxy-8414df1e1ae132cfc8919efa337e599020298ac9.zip |
fix type annotation
-rw-r--r-- | mitmproxy/addons/view.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mitmproxy/addons/view.py b/mitmproxy/addons/view.py index dd579585..13a17c56 100644 --- a/mitmproxy/addons/view.py +++ b/mitmproxy/addons/view.py @@ -10,7 +10,6 @@ The View: """ import collections import typing -import datetime import blinker import sortedcontainers @@ -69,7 +68,7 @@ class _OrderKey: class OrderRequestStart(_OrderKey): - def generate(self, f: http.HTTPFlow) -> datetime.datetime: + def generate(self, f: http.HTTPFlow) -> int: return f.request.timestamp_start or 0 |