diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-10-16 21:17:39 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-10-16 21:17:39 -0700 |
commit | 9389601025415c47d5efaa6ac371ddca6d543f48 (patch) | |
tree | 7a2fa561d702425ccec7edbc5a35108523e3f33d /mitmproxy/dump.py | |
parent | ae3ff8ee1edc646e7a640219df1a312c27f7c339 (diff) | |
parent | 5a07892bfc58472c1b651f66deaf03176bfe79df (diff) | |
download | mitmproxy-9389601025415c47d5efaa6ac371ddca6d543f48.tar.gz mitmproxy-9389601025415c47d5efaa6ac371ddca6d543f48.tar.bz2 mitmproxy-9389601025415c47d5efaa6ac371ddca6d543f48.zip |
Merge branch 'such-types'
Diffstat (limited to 'mitmproxy/dump.py')
-rw-r--r-- | mitmproxy/dump.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index c25d93f8..87f5783c 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -1,7 +1,7 @@ from __future__ import absolute_import, print_function, division -from typing import Optional # noqa -import typing # noqa +import typing +from typing import Optional from mitmproxy import controller from mitmproxy import exceptions @@ -19,10 +19,10 @@ class DumpError(Exception): class Options(options.Options): def __init__( self, - keepserving=False, # type: bool - filtstr=None, # type: Optional[str] - flow_detail=1, # type: int - tfile=None, # type: Optional[typing.io.TextIO] + keepserving: bool = False, + filtstr: Optional[str] = None, + flow_detail: int = 1, + tfile: Optional[typing.io.TextIO] = None, **kwargs ): self.filtstr = filtstr |