File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ def get_scopes(self, line_number: int = None):
192
192
scope_list = []
193
193
for scope in self .scope_list :
194
194
if (line_number >= scope .sline ) and (line_number <= scope .eline ):
195
- if type (scope .parent ) == Interface :
195
+ if type (scope .parent ) is Interface :
196
196
for use_stmnt in scope .use :
197
- if type (use_stmnt ) != Import :
197
+ if type (use_stmnt ) is not Import :
198
198
continue
199
199
# Exclude the parent and all other scopes
200
200
if use_stmnt .import_type == ImportTypes .NONE :
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def check_use(self, obj_tree):
216
216
last_use_line = - 1
217
217
for use_stmnt in self .use :
218
218
last_use_line = max (last_use_line , use_stmnt .line_number )
219
- if type (use_stmnt ) == Import :
219
+ if type (use_stmnt ) is Import :
220
220
if (self .parent is None ) or (
221
221
self .parent .get_type () != INTERFACE_TYPE_ID
222
222
):
You can’t perform that action at this time.
0 commit comments