From 8414df1e1ae132cfc8919efa337e599020298ac9 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 9 May 2017 00:34:19 +0200 Subject: [PATCH] fix type annotation --- mitmproxy/addons/view.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mitmproxy/addons/view.py b/mitmproxy/addons/view.py index dd5795850..13a17c56e 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