@@ -141,9 +141,9 @@ def __attrs_post_init__(self):
141
141
raise ValueError ('No override behavior can be set for reserved attribute "{}"' .format (attribute .value ))
142
142
143
143
# Enums are not hashable, but their names are unique
144
- _unique_actions = set ([ self .default_action .name ])
145
- _unique_actions .update (set ([ action .name for action in self .attribute_actions .values ()]) )
146
- no_actions = _unique_actions == set ([ CryptoAction .DO_NOTHING .name ])
144
+ _unique_actions = { self .default_action .name }
145
+ _unique_actions .update ({ action .name for action in self .attribute_actions .values ()} )
146
+ no_actions = _unique_actions == { CryptoAction .DO_NOTHING .name }
147
147
self .take_no_actions = no_actions # attrs confuses pylint: disable=attribute-defined-outside-init
148
148
149
149
def action (self , attribute_name ):
@@ -222,8 +222,8 @@ class TableIndex(object):
222
222
partition = attr .ib (validator = attr .validators .instance_of (six .string_types ))
223
223
sort = attr .ib (validator = attr .validators .optional (attr .validators .instance_of (six .string_types )), default = None )
224
224
225
- def __init__ (self , partition , sort = None ): # type: Text # type: Optional[Text] # noqa=D107
226
- # type: (... ) -> None
225
+ def __init__ (self , partition , sort = None ):
226
+ # type: (Text, Optional[Text] ) -> None
227
227
# Workaround pending resolution of attrs/mypy interaction.
228
228
# https://github.com/python/mypy/issues/2088
229
229
# https://github.com/python-attrs/attrs/issues/215
0 commit comments