aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-03-10 19:15:44 +0100
committerGitHub <noreply@github.com>2017-03-10 19:15:44 +0100
commitf3df4855aff135ef5d4206ce0d3c988671c415db (patch)
treededad2029449852b9ef0672cb3f2e219d44570db
parent8e67c6f512e53854bec567a0b1cc42bf34b6cedf (diff)
downloadmitmproxy-f3df4855aff135ef5d4206ce0d3c988671c415db.tar.gz
mitmproxy-f3df4855aff135ef5d4206ce0d3c988671c415db.tar.bz2
mitmproxy-f3df4855aff135ef5d4206ce0d3c988671c415db.zip
fix type hints
-rw-r--r--mitmproxy/addons/proxyauth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/addons/proxyauth.py b/mitmproxy/addons/proxyauth.py
index fffc4fcd..992ec322 100644
--- a/mitmproxy/addons/proxyauth.py
+++ b/mitmproxy/addons/proxyauth.py
@@ -1,7 +1,7 @@
import binascii
import weakref
from typing import Optional
-from typing import Mapping # noqa
+from typing import MutableMapping # noqa
from typing import Tuple
import passlib.apache
@@ -46,7 +46,7 @@ class ProxyAuth:
self.htpasswd = None
self.singleuser = None
self.mode = None
- self.authenticated = weakref.WeakKeyDictionary() # type: Mapping[connections.ClientConnection, Tuple[str, str]]
+ self.authenticated = weakref.WeakKeyDictionary() # type: MutableMapping[connections.ClientConnection, Tuple[str, str]]
"""Contains all connections that are permanently authenticated after an HTTP CONNECT"""
def enabled(self) -> bool: