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/proxy/config.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/proxy/config.py')
-rw-r--r-- | mitmproxy/proxy/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/proxy/config.py b/mitmproxy/proxy/config.py index 410ab701..22823f4c 100644 --- a/mitmproxy/proxy/config.py +++ b/mitmproxy/proxy/config.py @@ -36,10 +36,10 @@ class ProxyConfig: def __init__(self, options: moptions.Options) -> None: self.options = options - self.check_ignore = None # type: HostMatcher - self.check_tcp = None # type: HostMatcher - self.certstore = None # type: certs.CertStore - self.upstream_server = None # type: typing.Optional[server_spec.ServerSpec] + self.check_ignore: HostMatcher = None + self.check_tcp: HostMatcher = None + self.certstore: certs.CertStore = None + self.upstream_server: typing.Optional[server_spec.ServerSpec] = None self.configure(options, set(options.keys())) options.changed.connect(self.configure) |