File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1268,13 +1268,13 @@ def __getitem__(self, parameters):
1268
1268
return super (TupleMeta , self ).__getitem__ (parameters )
1269
1269
1270
1270
def __instancecheck__ (self , obj ):
1271
- if self .__args__ == None :
1271
+ if self .__args__ is None :
1272
1272
return isinstance (obj , tuple )
1273
1273
raise TypeError ("Parameterized Tuple cannot be used "
1274
1274
"with isinstance()." )
1275
1275
1276
1276
def __subclasscheck__ (self , cls ):
1277
- if self .__args__ == None :
1277
+ if self .__args__ is None :
1278
1278
return issubclass (cls , tuple )
1279
1279
raise TypeError ("Parameterized Tuple cannot be used "
1280
1280
"with issubclass()." )
Original file line number Diff line number Diff line change @@ -1193,13 +1193,13 @@ def __getitem__(self, parameters):
1193
1193
return super ().__getitem__ (parameters )
1194
1194
1195
1195
def __instancecheck__ (self , obj ):
1196
- if self .__args__ == None :
1196
+ if self .__args__ is None :
1197
1197
return isinstance (obj , tuple )
1198
1198
raise TypeError ("Parameterized Tuple cannot be used "
1199
1199
"with isinstance()." )
1200
1200
1201
1201
def __subclasscheck__ (self , cls ):
1202
- if self .__args__ == None :
1202
+ if self .__args__ is None :
1203
1203
return issubclass (cls , tuple )
1204
1204
raise TypeError ("Parameterized Tuple cannot be used "
1205
1205
"with issubclass()." )
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ ignore =
16
16
E128,
17
17
E129,
18
18
E501,
19
- E711,
20
19
W503,
21
20
# irrelevant plugins
22
21
B3,
You can’t perform that action at this time.
0 commit comments