diff options
author | oscure76 <midhun.nitw@gmail.com> | 2018-04-14 16:24:41 -0700 |
---|---|---|
committer | oscure76 <midhun.nitw@gmail.com> | 2018-04-14 16:24:41 -0700 |
commit | 0e984e1442e735a6a3cee5170bead492b231d620 (patch) | |
tree | 4e0ae4b5598f3c1be35a38819b15a12ace6209c8 /mitmproxy/addons/dumper.py | |
parent | 5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f (diff) | |
download | mitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.tar.gz mitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.tar.bz2 mitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.zip |
fix Python 3.6 variable type annotations #3053
Diffstat (limited to 'mitmproxy/addons/dumper.py')
-rw-r--r-- | mitmproxy/addons/dumper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/addons/dumper.py b/mitmproxy/addons/dumper.py index aaad8aa2..87f45976 100644 --- a/mitmproxy/addons/dumper.py +++ b/mitmproxy/addons/dumper.py @@ -28,8 +28,8 @@ def colorful(line, styles): class Dumper: def __init__(self, outfile=sys.stdout): - self.filter = None # type: flowfilter.TFilter - self.outfp = outfile # type: typing.io.TextIO + self.filter: flowfilter.TFilter = None + self.outfp: typing.io.TextIO = outfile def load(self, loader): loader.add_option( |