@@ -947,7 +947,6 @@ def finish(self, scope):
947
947
948
948
def validate (self ):
949
949
for member in self .members :
950
-
951
950
if member .isAttr ():
952
951
if member .inherit :
953
952
raise WebIDLError (
@@ -3165,7 +3164,7 @@ def typeName(type):
3165
3164
return "MaybeShared" + type .name
3166
3165
return type .name
3167
3166
3168
- for ( i , type ) in enumerate (self .memberTypes ):
3167
+ for i , type in enumerate (self .memberTypes ):
3169
3168
if not type .isComplete ():
3170
3169
self .memberTypes [i ] = type .complete (scope )
3171
3170
@@ -3206,7 +3205,7 @@ def typeName(type):
3206
3205
continue
3207
3206
i += 1
3208
3207
3209
- for ( i , t ) in enumerate (self .flatMemberTypes [:- 1 ]):
3208
+ for i , t in enumerate (self .flatMemberTypes [:- 1 ]):
3210
3209
for u in self .flatMemberTypes [i + 1 :]:
3211
3210
if not t .isDistinguishableFrom (u ):
3212
3211
raise WebIDLError (
@@ -3619,7 +3618,6 @@ def isExposedInAllOf(self, exposureSet):
3619
3618
3620
3619
3621
3620
class IDLBuiltinType (IDLType ):
3622
-
3623
3621
Types = enum (
3624
3622
# The integer types
3625
3623
"byte" ,
@@ -4287,7 +4285,7 @@ def coerceToType(self, type, location):
4287
4285
)
4288
4286
elif self .type .isInteger () and type .isFloat ():
4289
4287
# Convert an integer literal into float
4290
- if - (2 ** 24 ) <= self .value <= 2 ** 24 :
4288
+ if - (2 ** 24 ) <= self .value <= 2 ** 24 :
4291
4289
return IDLValue (self .location , type , float (self .value ))
4292
4290
else :
4293
4291
raise WebIDLError (
@@ -4468,7 +4466,6 @@ def _getDependentObjects(self):
4468
4466
4469
4467
4470
4468
class IDLInterfaceMember (IDLObjectWithIdentifier , IDLExposureMixins ):
4471
-
4472
4469
Tags = enum (
4473
4470
"Const" , "Attr" , "Method" , "MaplikeOrSetlike" , "AsyncIterable" , "Iterable"
4474
4471
)
@@ -5791,7 +5788,7 @@ def expand(self, members):
5791
5788
"CrossOriginWritable" ,
5792
5789
"SetterThrows" ,
5793
5790
]
5794
- for ( key , value ) in self ._extendedAttrDict .items ():
5791
+ for key , value in self ._extendedAttrDict .items ():
5795
5792
if key in allowedExtAttrs :
5796
5793
if value is not True :
5797
5794
raise WebIDLError (
@@ -5968,7 +5965,7 @@ def __init__(
5968
5965
5969
5966
IDLObjectWithScope .__init__ (self , location , parentScope , identifier )
5970
5967
5971
- for ( returnType , arguments ) in self .signatures ():
5968
+ for returnType , arguments in self .signatures ():
5972
5969
for argument in arguments :
5973
5970
argument .resolve (self )
5974
5971
@@ -6109,7 +6106,6 @@ def includesRestrictedFloatArgument(self):
6109
6106
6110
6107
6111
6108
class IDLMethod (IDLInterfaceMember , IDLScope ):
6112
-
6113
6109
Special = enum (
6114
6110
"Getter" , "Setter" , "Deleter" , "LegacyCaller" , base = IDLInterfaceMember .Special
6115
6111
)
@@ -6292,7 +6288,7 @@ def resolve(self, parentScope):
6292
6288
assert isinstance (parentScope , IDLScope )
6293
6289
IDLObjectWithIdentifier .resolve (self , parentScope )
6294
6290
IDLScope .__init__ (self , self .location , parentScope , self .identifier )
6295
- for ( returnType , arguments ) in self .signatures ():
6291
+ for returnType , arguments in self .signatures ():
6296
6292
for argument in arguments :
6297
6293
argument .resolve (self )
6298
6294
@@ -6435,7 +6431,7 @@ def validate(self):
6435
6431
variadicArgument = None
6436
6432
6437
6433
arguments = overload .arguments
6438
- for ( idx , argument ) in enumerate (arguments ):
6434
+ for idx , argument in enumerate (arguments ):
6439
6435
assert argument .type .isComplete ()
6440
6436
6441
6437
if (
@@ -6568,8 +6564,8 @@ def locationsForArgCount(self, argc):
6568
6564
6569
6565
def distinguishingIndexForArgCount (self , argc ):
6570
6566
def isValidDistinguishingIndex (idx , signatures ):
6571
- for ( firstSigIndex , (firstRetval , firstArgs ) ) in enumerate (signatures [:- 1 ]):
6572
- for ( secondRetval , secondArgs ) in signatures [firstSigIndex + 1 :]:
6567
+ for firstSigIndex , (firstRetval , firstArgs ) in enumerate (signatures [:- 1 ]):
6568
+ for secondRetval , secondArgs in signatures [firstSigIndex + 1 :]:
6573
6569
if idx < len (firstArgs ):
6574
6570
firstType = firstArgs [idx ].type
6575
6571
else :
0 commit comments