@@ -78,9 +78,9 @@ def _check_model_name_pairs(self, model_name_pairs):
78
78
def _check_maps_name (self , maps_name ):
79
79
if maps_name is None :
80
80
return None
81
- elif type (maps_name ) == str :
81
+ elif isinstance (maps_name , str ) :
82
82
return [maps_name ]
83
- elif type (maps_name ) == list :
83
+ elif isinstance (maps_name , list ) :
84
84
return [maps_name ]
85
85
else :
86
86
return None
@@ -174,9 +174,9 @@ def _check_model_name_pairs(self, model_name_pairs):
174
174
def _check_maps_name (self , maps_name ):
175
175
if maps_name is None :
176
176
return None
177
- elif type (maps_name ) == str :
177
+ elif isinstance (maps_name , str ) :
178
178
return [maps_name ]
179
- elif type (maps_name ) == list :
179
+ elif isinstance (maps_name , list ) :
180
180
return [maps_name ]
181
181
else :
182
182
return None
@@ -282,9 +282,9 @@ def _check_model_name_pairs(self, model_name_pairs):
282
282
def _check_maps_name (self , maps_name ):
283
283
if maps_name is None :
284
284
return None
285
- elif type (maps_name ) == str :
285
+ elif isinstance (maps_name , str ) :
286
286
return [maps_name ]
287
- elif type (maps_name ) == list :
287
+ elif isinstance (maps_name , list ) :
288
288
return [maps_name ]
289
289
else :
290
290
return None
@@ -428,9 +428,9 @@ def _check_model_name_pairs(self, model_name_pairs):
428
428
def _check_maps_name (self , maps_name ):
429
429
if maps_name is None :
430
430
return None
431
- elif type (maps_name ) == str :
431
+ elif isinstance (maps_name , str ) :
432
432
return [maps_name ]
433
- elif type (maps_name ) == list :
433
+ elif isinstance (maps_name , list ) :
434
434
return [maps_name ]
435
435
else :
436
436
return None
@@ -536,9 +536,9 @@ def _check_model_name_pairs(self, model_name_pairs):
536
536
def _check_maps_name (self , maps_name ):
537
537
if maps_name is None :
538
538
return None
539
- elif type (maps_name ) == str :
539
+ elif isinstance (maps_name , str ) :
540
540
return [maps_name ]
541
- elif type (maps_name ) == list :
541
+ elif isinstance (maps_name , list ) :
542
542
return [maps_name ]
543
543
else :
544
544
return None
0 commit comments