diff options
Diffstat (limited to 'mitmproxy/addons/export.py')
-rw-r--r-- | mitmproxy/addons/export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/addons/export.py b/mitmproxy/addons/export.py index f3300079..90e95d3e 100644 --- a/mitmproxy/addons/export.py +++ b/mitmproxy/addons/export.py @@ -77,7 +77,7 @@ class Export(): """ if fmt not in formats: raise exceptions.CommandError("No such export format: %s" % fmt) - func = formats[fmt] # type: typing.Any + func: typing.Any = formats[fmt] v = func(f) try: with open(path, "wb") as fp: @@ -95,7 +95,7 @@ class Export(): """ if fmt not in formats: raise exceptions.CommandError("No such export format: %s" % fmt) - func = formats[fmt] # type: typing.Any + func: typing.Any = formats[fmt] v = strutils.always_str(func(f)) try: pyperclip.copy(v) |