diff options
author | Matthew Shao <me@matshao.com> | 2017-06-24 10:18:00 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-06-24 10:18:00 +0800 |
commit | 18633262201b33fb0c36381fbc65febf21313eb7 (patch) | |
tree | 2087e959a6d4821627ff8ae530586552153a9cf3 /mitmproxy/utils | |
parent | c7ce7f84e6283fa08e87ee5ee35fd6053a2ab615 (diff) | |
download | mitmproxy-18633262201b33fb0c36381fbc65febf21313eb7.tar.gz mitmproxy-18633262201b33fb0c36381fbc65febf21313eb7.tar.bz2 mitmproxy-18633262201b33fb0c36381fbc65febf21313eb7.zip |
Minor Update for /options API of mitmweb.
Diffstat (limited to 'mitmproxy/utils')
-rw-r--r-- | mitmproxy/utils/typecheck.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/utils/typecheck.py b/mitmproxy/utils/typecheck.py index ed58182d..87a0e804 100644 --- a/mitmproxy/utils/typecheck.py +++ b/mitmproxy/utils/typecheck.py @@ -104,9 +104,9 @@ def typespec_to_str(typespec: typing.Any) -> str: if typespec in (str, int, bool): t = typespec.__name__ elif typespec == typing.Optional[str]: - t = 'Union' + t = 'optional str' elif typespec == typing.Sequence[str]: - t = 'Sequence' + t = 'sequence of str' else: raise NotImplementedError return t |