aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/flow.py
diff options
context:
space:
mode:
authoroscure76 <midhun.nitw@gmail.com>2018-04-14 16:24:41 -0700
committeroscure76 <midhun.nitw@gmail.com>2018-04-14 16:24:41 -0700
commit0e984e1442e735a6a3cee5170bead492b231d620 (patch)
tree4e0ae4b5598f3c1be35a38819b15a12ace6209c8 /mitmproxy/flow.py
parent5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f (diff)
downloadmitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.tar.gz
mitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.tar.bz2
mitmproxy-0e984e1442e735a6a3cee5170bead492b231d620.zip
fix Python 3.6 variable type annotations #3053
Diffstat (limited to 'mitmproxy/flow.py')
-rw-r--r--mitmproxy/flow.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mitmproxy/flow.py b/mitmproxy/flow.py
index 6a27a4a8..35d1a688 100644
--- a/mitmproxy/flow.py
+++ b/mitmproxy/flow.py
@@ -72,12 +72,12 @@ class Flow(stateobject.StateObject):
self.server_conn = server_conn
self.live = live
- self.error = None # type: typing.Optional[Error]
- self.intercepted = False # type: bool
- self._backup = None # type: typing.Optional[Flow]
- self.reply = None # type: typing.Optional[controller.Reply]
- self.marked = False # type: bool
- self.metadata = dict() # type: typing.Dict[str, typing.Any]
+ self.error: typing.Optional[Error] = None
+ self.intercepted: bool = False
+ self._backup: typing.Optional[Flow] = None
+ self.reply: typing.Optional[controller.Reply] = None
+ self.marked: bool = False
+ self.metadata: typing.Dict[str, typing.Any] = dict()
_stateobject_attributes = dict(
id=str,