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 /pathod/language/base.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 'pathod/language/base.py')
-rw-r--r-- | pathod/language/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pathod/language/base.py b/pathod/language/base.py index 97871e7e..32cddca6 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -334,7 +334,7 @@ class OptionsOrValue(_Component): Can be any of a specified set of options, or a value specifier. """ preamble = "" - options = [] # type: typing.List[str] + options: typing.List[str] = [] def __init__(self, value): # If it's a string, we were passed one of the options, so we lower-case @@ -376,7 +376,7 @@ class OptionsOrValue(_Component): class Integer(_Component): - bounds = (None, None) # type: typing.Tuple[typing.Optional[int], typing.Optional[int]] + bounds: typing.Tuple[typing.Optional[int], typing.Optional[int]] = (None, None) preamble = "" def __init__(self, value): @@ -442,7 +442,7 @@ class FixedLengthValue(Value): A value component lead by an optional preamble. """ preamble = "" - length = None # type: typing.Optional[int] + length: typing.Optional[int] = None def __init__(self, value): Value.__init__(self, value) @@ -511,7 +511,7 @@ class IntField(_Component): """ An integer field, where values can optionally specified by name. """ - names = {} # type: typing.Dict[str, int] + names: typing.Dict[str, int] = {} max = 16 preamble = "" |