mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
add type hints
This commit is contained in:
parent
716306538f
commit
618e0c6265
@ -1,7 +1,7 @@
|
|||||||
import binascii
|
import binascii
|
||||||
import weakref
|
import weakref
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from typing import Set # noqa
|
from typing import Mapping # noqa
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
import passlib.apache
|
import passlib.apache
|
||||||
@ -46,7 +46,7 @@ class ProxyAuth:
|
|||||||
self.htpasswd = None
|
self.htpasswd = None
|
||||||
self.singleuser = None
|
self.singleuser = None
|
||||||
self.mode = None
|
self.mode = None
|
||||||
self.authenticated = weakref.WeakKeyDictionary()
|
self.authenticated = weakref.WeakKeyDictionary() # type: Mapping[connections.ClientConnection, Tuple[str, str]]
|
||||||
"""Contains all connections that are permanently authenticated after an HTTP CONNECT"""
|
"""Contains all connections that are permanently authenticated after an HTTP CONNECT"""
|
||||||
|
|
||||||
def enabled(self) -> bool:
|
def enabled(self) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user