diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-04-29 23:19:11 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-29 23:19:11 +1200 |
commit | 83f87607036aad642515efe4fcdb0de9a8e31ed6 (patch) | |
tree | f72a30816e62e2c0492f70a46939afe3f222e152 /examples/simple/modify_querystring.py | |
parent | 25fb0cc019bfe2c86a8472831247fdee45703d53 (diff) | |
parent | 789fbd00d24ee591de592ae5d8143fe4278298d7 (diff) | |
download | mitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.tar.gz mitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.tar.bz2 mitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.zip |
Merge pull request #2221 from iharsh234/mypy-master-example/simple
Extend mypy example/simple (#2194)
Diffstat (limited to 'examples/simple/modify_querystring.py')
-rw-r--r-- | examples/simple/modify_querystring.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/simple/modify_querystring.py b/examples/simple/modify_querystring.py index ee8a89ad..12b16fda 100644 --- a/examples/simple/modify_querystring.py +++ b/examples/simple/modify_querystring.py @@ -1,2 +1,5 @@ -def request(flow): +from mitmproxy import http + + +def request(flow: http.HTTPFlow) -> None: flow.request.query["mitmproxy"] = "rocks" |